PHP's N tip.
Xml
Convert an XML string to an array?
Convert JSON to an array we all know yes json_decode(str,false) , what about converting an XML string? (that is, XML is becoming an unpopular one.)
The common practice on the Internet is:
The strtotime () function resolves the datetime description of any English text to a Unix timestamp.
strtotime(time,now)//参数描述time 规定要解析的时间字符串。now 用来计算返回值的时间戳。如果省略该参数,则使用当前时间。
The function expects to accept a string containing the U.S. English date
PHP's own MSSQL extension php_mssql.dll is for SQL Server 2000 and is not connected to 2008?! -_-!! To use SQL Server 2005 or later, use the latest third-party extended SQL Server Driver for PHP provided by Microsoft for PHP.
Download from here:
The example in this paper describes how Yii cleans up the cache. Share to everyone for your reference, as follows:
Html:
Copy the Code code as follows:
function ClearCache () { $.get ('.. /eng/index.php?r=site/clear& ' +new Date (). GetTime (),
Perverted
PHP School - brother even IT Education
It's over, project one review is over, and the first phase is over.
Recall the class to now nearly 2 months of study and project period, summed up into two words: ' Habit '! ' And not as scary
microtime()The function returns the current Unix timestamp and the number of microseconds.
echo(microtime());0.478130001451273280
microtime(true)Returns a floating-point numberCalculate the run time code:
$startTime = microtime(true);$endTime =
Nothing today, and occasionally see the version selection in Phpstorm a short description of the differences between the editions, so summarize.
PHP5.3 compared to the previous version, the biggest difference is the namespace and anonymous
Continue, this article describes the simplest steps of building a private warehouse.
For the summary:
Install the registry image and start the container.
CA certificate (There is also a way to directly use HTTP also line, you can omit this
This paper analyzes the usage of addcslashes and stripcslashes functions in PHP. Share to everyone for your reference, as follows:
When writing the English version of a website, after writing to fill in the English material, I casually fill in a
The examples in this article describe how Linux installs the PHP environment. Share to everyone for your reference, as follows:
1. Get the installation file: http://www.php.net/downloads.php php-5.3.8.tar.gz
Get the support files you need to
This paper describes the XML operation classes implemented by PHP. Share to everyone for your reference, as follows:
new_xml (' Test.xml '); $test->root (' document '); $test->append_root_ Node (' book '), $test->append_child_node (' author ', '
The examples in this article describe the files in the PHP statistics directory and the size of directories in the directory. Share to everyone for your reference, as follows:
"; } else{echo "". $fileName. " ===== ". Date (" Y-m-d h:i:s ",
This paper summarizes the thinkphp query method. Share to everyone for your reference, as follows:
First, the general Query method
1. Use string queries;
Copy the Code code as follows:
$m->where (' id=1 and Name= ' Roge ')->find ();
One drawback of
Get file under Directory
1. Get the file under the directory, not including subdirectories
Get all files, directory names under a directory (excluding files and directory names under subdirectories) $handler = Opendir ($dir); while (($filename
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