PHP str_replace function (can limit the number of replacements) This article mainly introduces the Str_replace function to replace a single character, and replace the data, as well as specify the number of Str_replace replacements, the last
PHP functions to delete directories
The instance application does the function of deleting a file directory:function Scmulu ($mlming){$DKML = Opendir ($mlming);Readdir ($DKML);Readdir ($DKML);while (($WJ = Readdir ($DKML))!==false){$WJ = $mlming.
This article describes the two commonly used functions of floating-point rounding in PHP round at the same time the Ceil function, which may hold digits in decimal places.
Round () function to round floating-point numbers
Grammar
Float round (float
Provides a simple example of PHP to determine the case letter function Oh, it can find out how many uppercase letters a string has how many lowercase letter oh, is a very convenient common function.
Provides a simple example of PHP tutorial to
Tree menu has a very wide range of applications in many desktop applications, the main advantage is that the structure is clear, so that users can very clearly know the location of their current. But the application of the tree menu on the Web
Strrpos and Strripos Use the same, let's take a look at it.
Definition and usageThe strrpos () function determines whether find will appear in string.
This function returns False if there is a success.
Strrpos Syntax
Strrpos
This article to give you a summary of the use of Func_get_args (), Func_get_arg () and Func_num_args () three functions in PHP compared with the difference, you can not reference reference.
Today, we use this several built-in functions, which are
PHP built-in function study series fourth, using PHP function Parse_str to implement query string parsing into variables, mainly discusses the function and usage of PARSE_STR () functions.
The Parse_str () function can be used to parse a string into
Filter the URL in the string, the image address of the regular expression
$form _html = Preg_replace ('/(?
http://www.bkjia.com/PHPjc/445433.html www.bkjia.com true http://www.bkjia.com/PHPjc/445433.html techarticle Filter the URL in the string,
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
Recommended use of violent version, safe and reliable; The gentle version is more efficient from the point of view of program writing. Oh
The basic principle is to fix off, Len may be misplaced, gentle version is from off to the forward search,
If you declare a function in a class named __construct, the function will be treated as a constructor and executed when an object instance is created. Clearly, __ is an underscore of two. Just like any other function, constructors may have
I'm going to write a help-processing system in PHP. I found I had to know how long it had been since I had finished dealing with the last customer's question. When I used ASP to solve this problem is quite simple, ASP has the corresponding function
By randomly extracting one or more cell methods from an array, we use Array_rand (), which is useful when you want to remove one or more random cells from an array. It accepts input as an input array and an optional parameter, Num_req, indicating
(1) Date
Usage:
Date (format, [time]);
If there is no time parameter, the current time is used.
The format is a string in which the following characters have special meanings:
U is replaced by the number of seconds since a starting time (as if it
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
$_files["File" ["Name"]-the name of the file being uploaded
$_files["File" ["type"]-the type of file being uploaded
$_files["File" ["Size"]-the size of the uploaded file, measured in bytes
$_files["File" ["Tmp_name"]-the name of the temporary copy
The Base_convert () function converts numbers between arbitrary binaries.
GrammarBase_convert (number,frombase,tobase) parameter descriptionNumber required. The original value.Frombase required. The original binary of the number.Tobase required.
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