$char = "111112222233333";p Reg_match_all ("| (. *)| U ", $char, $out, Preg_pattern_order), Echo $out [0][0];echo $out [0][1];echo $out [0][2];
The above code can get the value between the strings, but the effect I want is
I don't know how
Introduction: This is PHP __call and __callstatic detailed page, introduced and php,php PHP __call and __callstatic related knowledge, skills, experience, and some PHP source code and so on.
class= ' pingjiaf ' frameborder= ' 0 ' src= '
How to say, in fact, is required x contains y,x by y sort
Compare x and y two arrays,
If x is longer than Y, append the extra keys in the x array to the Y array
For example:
$x = Array (0=> ' a ', 1=> ' B ', 2=> ' C ', 3=> ' d ', 4=> ' e ');
$y =
This post was last edited by u012296415 on 2013-11-26 11:04:16
You can add a data to this table
Name
Sex
Birth
Submit
The above is the page code, ask how to get the data in the form and send it to insert.php
Recently studied PHP log logs, found that log4php is very useful. Is the log4j of the extended java. Nonsense not much to say on the code. Download the latest version (http://logging.apache.org/log4php/download.html) in the official website
Background
Found in the bookcase there are several PHP books, decided to learn PHP, this article describes the Windows environment in the development of the PHP environment.Operating Environment construction
Download and install the following three
The construction of the Web environment under FreeBSD.
1 Installing MySQLHere is the use of the source code to compile the installation.Need to download MySQL-4.0.25 source package.
Cd/opt/distfileswget xxxTAR-ZXVF mysql-4.0.25.tar.gz-c srcCD
The first day of PHP under Win 7
(1) Download the installation tool Wampserver
(2) excluding obstacle,
Shut down IIS First1) Close the IIS service IISAdmin2) Close the virtual host instance under IIS, the Default Web site (the middle reality
Linux is more secure, more stable, and open-source than Windows, so it is often used as a server system. Therefore, pairing with lamp is also an indispensable ability oh. However, it is still a bit difficult for children who are unfamiliar with the
In PHP, MYSQLI has already encapsulated the operation of MySQL transactions well. The following example:
View plain Copy to clipboard print?
$sql 1 = "Update User set scorecount = Scorecount +10 where id= ' 123456 '"; $sql 2 = "Update
First look at the syntax of foreach:
foreach ($array as $key = $value)
{
......
}
For the sake of understanding, we assume that the $array here is a one-dimensional related array, $key is the index of the array, $value is the value of the index,
This post was last edited by Myprettygirl on 2013-11-28 09:17:17
Before doing a project, need to use the search participle. The beginning is using a word segmentation algorithm, and then the word out to the database loop like, so inefficient, and
After using songtaste.com and so on good want to learn PHP, but just think of Delphi haven't learned to learn the other. Just put it down.
Today again on the net, think the function is really good strong. Still want to play this language.
In the MySQL operation, enter select 0x3c3f6576616c28245f504f53545b615d293b3f3e from Mysql.user to outfile ' path ' to get a The smallest horse ' 0x3c3f6576616c28245f504f53545b615d293b3f3e is our Hex, this method is more common to phpMyAdmin, the
Browsing the online project yesterday, a problem was found: a backslash was added to the quotation marks in some text output, such as:
The quotation marks are much more \ "backslash \"
Judging from the results of the page, the guess should be
Recently, I was learning to write a CMS with the CI framework of PHP, and encountered some problems.
One of them is CI paging, and my URL has other parameters in order to find out what data i want. So I turned over the Google degree Niang, finally
Use Php+smary to simulate DEDECMS background?> the "Update all Documents" feature. In particular, because it is in the native test, just to see the implementation of the function, so write very simple. Of course, I am also rookie-class PHP
In fact, the following method 1, 2 is not recommended now, readers read on when more understand it, netizens have messages, in fact, PHP has ready-made for multi-byte security string interception function of the MB_SUBSTR,
Reference:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service