1, grammar: must be proficient in writing code when the IDE's editor to a row of errors should be able to according to the error information to know what kind of syntax errors and know any corrections.
2, command: Must be familiar with some of the
This article collects the usage of some important underlying functions in PHP
1. Error and log function library
This library belongs to the core function Library of PHP, which can be used directly. There are several functions in this
say ();
A simple sentence, new without parentheses, then there are no parameters in the constructor.
When new comes with parentheses, there are parameters in the constructor.
The results of the operation are as follows
According to the actual work need, want to find out what you want from the visit log, such as files not found, from Google or from Yahoo or from other places, or search engine spider access. The principle is very simple is to open the file, filter
The functionality that is documented in this article is similar to the order by in MySQL, where a requirement is encountered in the previous project.
requirements: Get each of the 4 data from two different tables, then consolidate (Array_merge) into
Recently to develop the conversion of Chinese characters to pinyin and to get the function of the first word record down Hazi: hehe ~
Class pinyin{Private $_outencoding = "GB2312"; Public Function Getpinyin ($str, $pix = ', $code = ' gb2312 ')
1.android-Side Send XML request:
There are 2 main points:
HttpPost HttpPost = new HttpPost (str);
Httppost.setentity (new Stringentity (XML));
The first is to create a new HttpPost request, initialized with STR, and STR is the server-side
I am a beginner of PHP, has been engaged in Java, learning methods, is in accordance with the idea of Java, more like PHP, we learn together. Like can be discussed together. Thank you.
', $content);
Fclose ($rFile);
}else{echo ' not file '; }//
Found an interesting thing today, using the PHP time () function to output the current times until this number: 1366424565
It's the same thing:
Definitions and Usage
The time () function returns a Unix timestamp for the current time. Grammar
Time (
Using Iconv () to convert a character that is not supported by an output character encoding, such as Iconv (' UTF-8 ', ' GB2312 ', ' embarrassing '), you may encounter such error prompts:
Notice:iconv () [Function.iconv]: detected a illegal
1. Definition of namespacesNamespaces are the way to organize PHP code in a virtual directory-like hierarchy,
2. Why to use namespaces
Avoid class name collisions when merging with other team or personal code, and follow PSR-4 code loading
In the beginning of the first contact with PHP, are process-oriented methods to do some very simple web site play, write PHP code is piling up, scalability and maintenance too bad to change logic is extremely inconvenient. Later found that PHP is
As a normal programmer, several languages are very normal, I believe that most programmers will also write a few PHP programs, if the Web programmer, PHP must be necessary, even if you do not use it to develop large software projects, but also how
This article contains the following:
Xdebug file Download and configuration IDE (phpstorm) launch debug Chrome launch debugging
1, xdebug file download and configuration
Go to the Xdebug download page and select the appropriate xdebug version as
Definitions and usage
The Usleep () function delays code execution for several microseconds. Grammar
Usleep (microseconds) parameter description
microseconds required. The pause time in microseconds. return value
no return value. Tips and
method/Step 1
Phpinfo (); This is the most common method, but so many extensions are really not easy to find. 2
The extension_loaded () method returns the Boolean type value by passing in the extension that wants to know if it is open; 3
Of course,
This period of time lazy to relax to old ~ Ah Oh ~ to recall the use of the array in PHP. C language or C + + language, although the array is very powerful, but the pointer is a long-standing problem. And in PHP basically does not exist in this case,
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