A PHP common data type
1. Basic data types
1.1 Integral type1.2 Decimal type (floating number) contains single precision and double precision1.3 Boolean types (representation True, and false)1.4 String
2. Composite data type
2.1 Arrays (Array)2.2
1 the global variable (external variable) before the description and then the static to form a global variable. The global variable itself is the static storage mode, static global variables are of course also static storage mode. The two are not
First of all, the magic of PHP is supported by character data types, some students wrote such a code:
for ($c = ' a '; $c Echo $c. ' ';}
But it turns out it's not the A to Z he wants.A b c d e F g h i j k l m n o p q R S t u v w x y z aa ab AC ad
When you recently made form submission, the check box checkbox submitted data does not know how to handle, checkbox allows multiple options, we can not each option to customize the Name property, and then the background one by one to obtain, which
For example, the following section of the login code:
The code is as follows
Copy Code
if ($l = @mysql_connect (' localhost ', ' root ', ' 123 ')) or Die (' Database connection failed ');mysql_select_db (' Test
Examples, examples of PHP encryption decryption
The code is as follows
Copy Code
Cryptographic functions /** Function: Encrypt string to handle* Parameter one: Content that needs to be encrypted* Parameter two:
Sometimes you need to filter out the extra tag attributes, such as the IMG tab that filters out all attributes except the SRC attribute, such as deleting titile alt attributes and some of the foot onclick properties.
For example, to filter all
[Original]php+ajax to realize the simulation win file management system
This tutorial by the original site, reproduced please specify the place
Author: www.111cn.net
Email: drise@163.com
qq:271728967//
Today to write a PHP and AJAX
The original is based on the user input of the digital judgment and then converted to the desired capital number, if we first put the case of an array, and then judge the conversion is OK.$data = $_post[' RMB '];if (!ereg ("^[0-9.]", $data)) Die ('
Use regular filter HTML tags
The code is as follows
Copy Code
$html _body = "www.111cn.net";Preg_replace ("/(]*>)/e ","' \1 '. Strtoupper (' \2 ')." \3 ' ",$html _body);
Using PHP tutorial with function
function Outpege ($ps tutorial, $page){$ps Cumulative number of information $page the current page number $max the maximum number of lists $min the minimum value of the list$max = ($page >= 5)? $page +5:10;if ($max > $ps) $max = $ps;$min = ($page-5);
The
PHP Framework series will introduce three widely used PHP frameworks--zend, Symfony, and cakephp--to study the similarities and differences of three frameworks by building and extending sample applications in three frameworks. Part 1th will
ZF-developed methods for integrating PHP applications with traditional PHP applications
As you know, ZF needs to have all HTTP requests processed by index.php (bootstrap), so we need to configure the URL rewrite rules for the server, such as
This article discusses how to completely eliminate the Warning:cannot add header information-headers already sent in ... This is a puzzling mistake.
As long as you have written PHP code, I believe you have encountered this most of the time is not
about what is ImageMagick
ImageMagick is a series of software, mainly for image creation, editing and conversion, etc.
Centos installation ImageMagick
1. Run the following command sequentially
The code is as follows
Copy Code
On the positive I was a smattering, I am the idea of the regular is, can be used on the line!
For all the characters, my first understanding was. *
Then Google a bit, just know. * Connecting together means any number of characters that do not
PHP checkdate () date judgment function example tutorialDefinition and usageThis checkdate () function returns true, except false if it is valid on the specified date.The date is valid. If:1 to 12 inclusive every monthThe number of days allowed in a
This method is not run in the popular apache + php Tutorial _ module mode. I use nginx as a web server and run php in fastcgi mode.Compile in linux:Nginx I am still used to choosing version 8.54. Its compilation depends on the following software
Zend Opcache configuration methodZend Opcache has been integrated into PHP 5.5. When compiling and installing PHP5.5, add -- enable-opcache. But it also supports earlier versions of PHP 5. 2. *, 5. 3. *, 5. 4. * in the future, the 5.2 support will
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