To delete data and variables in PHP using the work of the unset can be implemented, of course, you can also use the empty also processing, but destroy variables, let PHP variables in memory disappear OH.
To delete the data and variables in PHP
How to remove Directories in PHP This article provides three ways to delete directories in PHP, if you are looking for a delete directory or delete all the files in the PHP code to see it.
PHP Tutorial Delete Directory several methodsThis article
Let's take a look at the PHP copy function tutorial below.
Copy(PHP 4, PHP 5)Copy-Copy filesDescribeBoolean copy (string $ Source, string $ dest [, resource $ background])Dest A copy source of the file.If you want to move the file, use the rename ()
Define and use the Chown () function is used to change the permissions of the specified file. The failure to return true and false successfully. Grammar Chown (File,owner)
Definition and usageThe Chown () function is used to change the permissions
PHP has out-of-the-box function getimagesize to get the dimensions of the image, how the function is used, and the code example
$arr = getimagesize("http://www.php100.com/html/php/hanshu/2013/0905/1.jpg");/** * 这里$arr为一个数组类型 * $arr[0] 为图像的宽度 *
PHP file () function previously I wrote a file function in the Web anti-virus program Oh, is actually file to read a TXT file directly and saved to the array, then I I think you also know what its role is it, file reading is the TXT file in the
The header () function sends a raw HTTP header to the client. Header (String,replace,http_response_code) It is important to see that the title () must be sent in any so-called actual output
PHP Header Function Tutorial
Definition and usageThe header
Preg_replace is a Perl built-in text matching mode, but some parameters will be more complex than ereg_relace, the actual project use, with Ereg people still a lot of, recently I wrote a get HTML text in the function, found Preg_ Replace actually
PHP has a lot of ways to get remote file size, oh, the most commonly used is fsockopen, file_get_contents, curl function Oh, let me give you a summary.
1, Fsockopen
The code is as follows
Copy Code
function
PHP umask Function Tutorial
Umask value(PHP 4, PHP 5)Umask-Changed the current umaskDescribeInterpretation of the Umask ([International $ matte])Umask () Sets the PHP umask value to cover up and 0777 and returns the old Umask. When PHP is used as a
First, let's take a look at two extraordinary characters: ' ^ ' and ' $ ' they are used to match the beginning and end of the string, respectively, for example:
"^the": matches a string that begins with "the";
"Of despair$": matches a string
This article gives you a comprehensive introduction about PHP var_dump () function usage in detail, you can refer to the reference.
Var_dump ()
void Var_dump (mixed expression [, mixed expression [, ...]])
The Var_dump () method is to determine the
Write a few identity card aspects of the function, personal feeling is very useful, especially in the network questionnaire survey, the identification of personal information on the ID is very useful, but should be few, or collected in their own
The directory traversal function in PHP is inherently common, but it has an "object-oriented" form, so mention:
(1) dir, Opendir
Usage:
$d = Dir ("directory Name");
$handle = Opendir ("directory Name");
The former returns a directory object, which
2012 I decided to start blogging, not for anything else, I hope that through the blog to record my growth process also hope to help some just graduated, just into the industry brothers and sisters. We are a group full of impetuous, complaining,
Before the array to do a merchant coupon function, need to use the barcode, so the data re-organized.
1. What is a barcode?
Baidu Encyclopedia definition: bar code (barcode) is the width of a number of black bars and blank, according to a certain
1. Download Quercus:
http://quercus.caucho.com/
Version of course the latest best, because in principle, the new version of PHP more support, but in their own testing to find the latest 4.0.25 there is a problem, so swap 4.0.18 version.
Select File
We have already learned the basic syntax of regular expressions, including delimiters, atoms, metacharacters, and pattern modifiers. In fact, if the regular expression wants to function, it must be borrowed from the regular expression handler. In
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