Copy CodeThe code is as follows:
/*************by garcon1986*********/
The difference between print and Echo:
1. Echo can enter multiple strings, while print cannot.
print "Hello". " World "; Success
echo "Hello". " World "; Success
Print "Hello", "
1, support mass (if need to bulk multi-number in English comma (,) separated (159..,159))
2, support post or Get method to submit data
The site interface:
Http://api.heqee.com/fetion/?username= fetion Mobile phone number &passowrd= fetion phone
Also, we should try to use = = = to replace = = (Of course, this is also appropriate according to the specific business logic) when we compare two values in the control structure.
Little brother to explain why
Var_dump (In_array (0, Array (' s '));
Because I prefer SQL injection
A lot of websites have been tested aspphpjsp
The discovery is basically using MD5 encryption algorithm
All say MD5 irreversible can't break
Yes, MD5 is irreversible, but it can be violently broken.
You just need to put
Recently developed social game, found that the use of this thing is still relatively ordinary, here to make a summary, one for their own memory, but also hope that everyone has help.
First look at the demand, if we develop social game on Facebook,
One
The ";" in front of the following parameters in the php.ini Remove:
Copy CodeThe code is as follows:
; Extension=php_dba.dll
; Extension=php_gd2.dll
; Extension=php_mbstring.dll
; Extension=php_mcrypt.dll
; Extension=php_mysql.dll
;
(1) All data should be hidden inside the class in which it resides.
(2) The consumer of a class must depend on the common interface of the class, but the class cannot rely on its consumer.
(3) Minimize the message in the class's protocol.
(4)
Let's say two ways:
1) Define a string variable that holds the list of files to be loaded. Then foreach loads.
Copy CodeThe code is as follows:
$a = '/a.class.php;/util/b.class.php;/util/c.class.php ';
$b =
In PHP, arrays are divided into two categories: numeric indexed arrays and associative arrays.
Where the numeric index array is the same as the array in the C language, the subscript is for 0,1,2 ...
Associative array subscripts may be of any type,
Copy CodeThe code is as follows:
$rptype = 0 means only HTML tags are replaced
$rptype = 1 to replace HTML tags while removing contiguous whitespace characters
$rptype = 2 to replace HTML tags while removing all whitespace characters
$rptype = 1
1. Chinese character interception function supported by UTF-8 and GB2312
Copy CodeThe code is as follows:
/*
Chinese character interception function supported by Utf-8 and gb2312
Cut_str (string, intercept length, start length, encode);
encoding
Introduction to the Array_reverse () function and the shuffle () function
Array_reverse ()The array array_reverse (array) array_reverse () function passes in an array of arguments, returning an array that is the same as the passed-in parameter
Here, it is generally necessary to pre-encode the normal string into a format that the JavaScript unescape () function can interpret, and in PHP, for example, you can use the following function to implement the same functionality as the Escape ()
1. Determine the length of a string
This is the most obvious example of the article, where the question is how we can determine the length of a string, and here we cannot fail to mention the strlen () function:
Copy CodeThe code is as
Zencart The method of random sort modification of new products in the first step: First, the new product can define its own time period: Store Settings-Maximum value-the definition of new products
the method of random ordering modification of new
When I installed phpMyAdmin I did not manually configure the config file, but instead used its setup function.
Default values are used in addition to the server name and authentication method.
The server name has been randomly entered, and the
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