The strrchr () function finds the position of the last occurrence of a string in another string, and returns all characters from this position to the end of the string.
Otherwise, false is returned.
SyntaxStrrchr (string, char) parameter
In Windows, in the default PHP configuration, the time value returned by the date function is always 8 hours different from the local time, that is, the Greenwich Mean Time is displayed. The solution is to correctly set the time zone of PHP.
The
/*
Permission Design
There is a global administrator root
Each topic has a combination of administrator permissions and other permissions.
Each permission is a multiple of 2.
LIST/read 1
Add 2
Edit 2
Del 4
All admin
*/
If (5 & 2)
{
Echo
Strstr (string, string) = strchr (,) // truncate from the place where a string appears for the first time to the endStrrchr (string, string) // captures a string from its last position to its end.Strpos (string, string [, int]) // position where a
For PHP, I personally feel familiar with array and string operations. It is basically an entry. php itself has a lot of functions for operating arrays and strings,When creating a function today, you need to use js to dynamically create store
Let's share some good things.
1. if a method can be static, it is declared as static, and the speed can be increased by 1/4; 2. ECHO is more efficient than print. Because ECHO does not return a value, print returns an integer. 3. set the maximum
If you have installed PHP. ini in C: Windows, you should change thisIf not, replace PHP. ini-Dist with PHP. ini and copy it to C: Windows.To display the error message, process and modify the settings, you must also set the IEA friendly HTTP Error
Heredoc technology is generally not detailed in regular PHP documents and technical books. It only mentions that it is a Perl-style string output technology. However, some forum programs and some article systems use heredoc to partially implement
Although PHP has provided XML support in earlier versions, this support has been greatly enhanced with the emergence of PhP5. PhP4 has limited support for XML. For example, only the sax-based parser and PhP4 Dom are provided by default, and the W3C
PHP security (1)
PHP security (1)Original: John Coggeshall 07/31/2003Original article: http://www.onlamp.com/pub/a/php/2003/07/31/php_foundations.htmlIn the last two columns ("Common style errors (I)" and "Common style
I. OverviewThis class mainly detects the running time of a piece of code and some PHP efficiency problems.
Ii. UsageFirst, the require class mainly uses the interfaces begin (), pretime () and end () begin ($ output, $ Environment). This interface
The first phase of "php & more" is already under intense production and has made the top 10 pages, including "Creole: emerging data abstraction layer" by easy Chen. haohappy translated object-oriented and process-oriented in PHP and the first
Basic 1 algorithm:
This algorithm can be ~ Converts the hexadecimal value to the hexadecimal value.
Because recursion is used, an array must be provided as the reference variable during the 10-in-10 => N-in conversion process. Save the
I believe that friends who often process XML will use simplexml_load_string, which turns XML into an object, which is very convenient. But if you want to serialize this object and cache it, be careful. There is no problem when writing the cache,
In the past, PHP was treated as a pure system programming script. It was the first time that PHP was used to write a web site in March. Here is a summary of some experience.
1. Enable error display and Error Log. Set dispaly_errors to on in PHP.
Development and testing of PHP extension modules in Linux (original)Author: Yu Chao Email: yuchao86@gmail.comMany people are afraid of PHP extension module development. I have been working on Sina for two years and have used this module flexibly.
PHP programmers make more or less mistakes in actual operations and repeatedly make the same mistake. Today we have summarized the 10 most common mistakes that PHP programmers can make, let everyone have a correction reference.
1. Do not
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