: PHP learning notes (2) data type: Serial Number symbol name function remarks 1echo output character is the same as the print statement of python, and the string or variable following it is displayed on the page 2; after a semicolon is used in the
Php: PHP static page entry: php page static & lt ;? Php2. return input
/**
* Static PHP pages are divided into the following steps:
* 1. open the output control cache
* 2. return the content in the output cache.
* 3. write a string to a file
0001: PHP self-learning no00014 predefined constant:; file name echo current row:; echo _ LINE __.; in programming, the number of lines echo the PHP version:; echoPHP_VERSION .; PHP echo Operating system:; echoPHP_ OS; PHP operating system? & Gt;
: PHP self-learning no3169 data type floating point type of circumference rate output:; echo first type: pi (). pi ().; echo Type 2: 3.141592653593.14159265359; echo Type 3: 314159265359E-11314159265359E-11; * php string connector is. not + haha
: PHP self-learning no00011 data type conversion: & lt ;? Php $ num3.141592653r * r; use (integer) to convert echo
'; Echo' do not convert and output the original variable '; echo $ num; echo''; Echo' use the settype ()
: This article mainly introduces the distance between users within three kilometers of php computing. if you are interested in the PHP Tutorial, please refer to it.
/*** Calculate the user within 3 kilometers * @ param type $ lng string longitude * @
: This article describes how to create a webservice using php and call a real instance using c #. For more information about PHP tutorials, see. Recently, we need to use php to create webservice for C # and JAVA to call. After three days of
: This article mainly introduces php: What does it mean? For php instructions and applications, if you are interested in PHP tutorials, refer. 1. in the class
Static methodAnd
Static attributesReference Method
For example
Class Test {
Public
: This article mainly introduces nginx virtual machine settings. if you are interested in the PHP Tutorial, you can refer to it. Generally, we do not deploy only one project on one machine. in this case, we need to set up a virtual machine to map
: This article describes how to process json and xml in php. if you are interested in the PHP Tutorial, refer to it. Json transcoding
Json_encode ($ mixed );
Decodes json data into raw data
Json_decode ($ json, [ture]); // ture indicates
: This article describes how to create a layout instance for the php user registration interface. For more information about PHP tutorials, see. Php creates a layout instance for the new user registration interface
Load page
Create a new
: This article mainly introduces php code reuse and functions. For more information about PHP tutorials, see.
'; Require ('reusable. php'); echo 'The script will end now.'; // Function declaration function my_function () {echo 'My function was
: This article mainly introduces the effect of loop playback of php ad images. For more information about PHP tutorials, see.
Image play
1
2
3
4
Script var tags = $
: This article mainly introduces the paging implementation of php --- mysql + ajax unordered list (ulli). If you are interested in PHP tutorials, refer to it. (The front-end displays the news list)
Note: The css implementation in the following
: This article mainly introduces the libraries that require additional installation of tunginxconfigure. if you are interested in the PHP Tutorial, please refer to them. System: ubuntu
Install nginx
./Configure error: the HTTP rewrite module
: This article describes how to create and traverse arrays in php. For more information about PHP tutorials, see. The establishment of arrays in php can be divided into three types of methods. when traversing an array, we often use the count ($ arr)
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