Mathematical functions1.abs (): Absolute value$abs = ABS (-4.2); 4.2 Numeric Absolute number2.ceil (): Into a method to take the wholeecho ceil (9.999); 10 floating point number in one rounding3.floor (): Rounding off the Rounding methodecho Floor (9
1. Formatted output
Chop is the alias of RTrim ();
LTrim ()
Trim ()
NL2BR () convert \ n to
print,echo,printf (), sprintf ():
Echo () is not a function, print () is a function, has a return value, boolen,false,true;
printf () Formatted
1. Find characters from string:
Char *strchr (const char *s,int c);
Description: This function looks for the character with a C value from the first character in the string of S, and returns the stored address of the character if the lookup
The standard library provides functions for handling strings whose prototypes are in the header file string.h.
the string.h header file defines a variable :size_t: This is the unsigned integer type, which is the result of the sizeof keyword.
•
Function Name: strtok
Function prototypes: Char *strtok (char *s1, const char *S2)
function function: Decompose S1 strings into multiple strings separated by a specific delimiter (typically used to break English sentences into words)
function return:
Queue:
1, Queue<>q common operation:
(1) Q.front () take the first element of the team;
(2) q.pop () Delete the first element of the team;
(3) Q.empty () to determine whether the queue is empty;
(4) Q.push () insert an element into the queue and
Example One, you can automatically identify the picture type and then save the corresponding
The code is as follows
Copy Code
/** Function: PHP perfect implementation download remote picture save to local* Parameters:
This problem is not difficult, the test center is mainly in function substr () STRRCHR () Array_pop () Strrpos () Strpos (), Strrev () explode ().
No more nonsense to say, directly to everyone paste code.
Get file suffix, traverse directory
Find the getremoteimage.php in the ueditor/php directory,
Law I: Amend the 12th line of Savepath "=>" upload/"to
The code is as follows
Copy Code
1 "Savepath" => "upload/". Date ("Ymd"). " /"
Law II: the 80th
$message//article content
Regular (this is not yet)
$reg = "/]*src=" (http://(. +)/(. +). ( JPG|GIF|BMP|BNP)) "/isu";
Store the IMG address in the $img _array variable
Preg_match_all ($reg, $message, $img _array, Preg_pattern_order);
Filter for
If you just judge the name of the EXE (do not need to judge the path), you can omit enumprocess, because the pe32.szexefile already have the name of the EXE, because there is no path, so the function enumprocess to get the full path. This is a
I. 10 Experiences
1. Do not rely on register_global=on environment, from you just know how to configure PHP to run the environment not even understand Register_global On/off will have any impact on their own day, you should be brave to set it off.
This article mainly introduces php file download code sharing compatible with the IE 6 browser, and solves the bug that files cannot be downloaded in ie6. For more information, see
This article mainly introduces php file download code sharing
Welcome to the Linux community forum and interact with 2 million technical staff. When learning PHP, you may encounter PHP image uploading problems. Here we will introduce the solutions to the PHP image uploading problem, I will share it with you
Previous Article:Ufida icc website Customer Service System Remote Code Execution Vulnerability and repairUfida icc website customer service system Arbitrary File Upload VulnerabilityArbitrary File Upload Vulnerability in the customer service system
Hacking the D-Link DIR-890L
In the last six months, D-Link had been making bad mistakes, and turned me dizzy. Today I want to have some fun. I log on to their website and I can see a terrible scene:D-Link's $300 DIR-890L routerThere are many bugs 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.