In this article, I will list the best software for charts, graphics, and data visualization, from creating basic 2D charts to data visualization that generates complex datasets. These PHP, javascript and Flash charts must be at a glance for any
This note only extracts the notes for php, and does not write any content about operators or simple judgments.
1 string
1.1 strlen () function compute String Length
The 1.2 strops () function searches strings or characters in strings.
2 array
2.1
In the last two sections, I spoke about guest. php and edit. php. Note the differences between php and html:Php is usually --> (1) (2) Echo ("zihanonline ");?>(3) (4) And so on. Do not confuse.Next we will study information management: manage. php
The RMB amount is converted to uppercase in Chinese, and the Code for the same function is also written in PHP:
Php codeFunction cny ($ ns ){Static $ cnums = array ("zero", "one", "two", "three", "Si", "Wu", "Lu", "Lu ", "success", "fail "),$
1. configuration files involved:/Etc/php5/apache2/php. ini2. Specific rows:Display_errors =Error_reporting =3. Remember to restart the service.
PHP Error ReportThe php. ini file contains many configuration settings. You should have set your php. ini
The Code is as follows: Php code// The following defines a function for sending emails, which has passed the test.// $ Sendto_email: email sending Address// $ Subject: Email subject// $ Body: body of the email// $ Sendto_name indicates the sender's
Character flip is a piece of cake for php processing. php's string function strrev can handle the following:
Echo strrev ("Hello World! "); // The output result is "! DlroW olleH"
However, sometimes during interviews, we often need to write a
// Time Conversion Function
Function tranTime ($ time ){
$ Rtime = date ("m-d H: I", $ time );
$ Htime = date ("H: I", $ time );
$ Time = time ()-$ time;
If ($ time
$ Str = 'gang ';
}
Elseif ($ time
$ Min = floor ($ time/60 );
$ Str = $ min. '
// The string with Chinese and English ASCII codes is cut into an array of single words
// Satan @ Author 2011-10-26
Private function chinesesplit ($ str ){
// $ Str = "x little girl went to kfc to eat chicken. The flying knife was shot. nobody
Is there a limit on the number of words displayed?
Yes! Use truncate
Truncates a certain length of characters starting from a string. The default value is 80.
You can also specify the second parameter as the text string appended to the string to
This afternoon, segmentfault.com asked a question titled "How To Make PHP service", asking if php can only be called on the web. In fact, many people have misunderstandings about the use of PHP, and think that php can only be used to write web
Function Name usage format input/output operations
Array generation and conversion:
Array () generates an array (mixed [...]) value or, key => value: No
Array_combine () generates an array using the value of one array as the key name, and the
Recently, I was playing SAE network marketing training (SINA's cloud computing platform), so I went back to PHP. I plan to write a microblog application, so I found that the simple controller mechanism can easily confuse the Code during the writing
PrefaceSmarty is an excellent PHP template engine that separates logical code from user interface.Learning and using Smarty without applying it to the cache technology is a huge loss. It can cache the HMTL file that the user finally sees into a
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