A string substitution problem where PHP partially hides the variable *
I give an example, say: $str = "13760721151";
I'm going to turn this phone number into: 1376****1151;
It hides about one-third of what's in the middle.
How to implement in
Please help the master to modify the recursive function, so that it has a return value
At the moment I have a recursive function that echoes out the ID value in a multi-dimensional array
Echo to page appears as "1,2,3,4,5 ..."
PHP Code
PHP does not load the MySQL (outside the chain, English) extension, please check your PHP configuration is what error?
MySQL database and phpMyAdmin installed, can be run after
Unable to load MySQL (outside chain, English) extension, please
Php_curl problems that cannot be loaded
PHP.ini change, or this problem (of course, my path Chinese existence this extension)
Httpd.exe:Could not reliably determine the server ' s fully qualified domain name, using 192.168.2.101 for ServerName
PHP
Just talking about XSS attacks.
I remember doing a project before. The presence of an XSS attack is detected.
At first I did not filter the content submitted.
Later, the Foreach loop filters each variable $_get...$_post ... and finds No.
Then had
Help me out with a little problem, thank you.
Abstract class abs_db{//Abstraction classes
Abstract protected function connect ();//Database connection
Abstract protected function select_db ();//Select Database
Abstract protected function SetChar ()
Master! Please help a regular: The string contains any 4 or 5 letters of A, B, C, D, E, F 6 letters
Master! Please help a regular: The string contains any 4 or 5 letters of A, B, C, D, E, F 6 letters
Thank you!
------Solution--------------------
"Turn" the difference between Php:echo, print, Print_r, sprintf, Var_dump
-Echois a command and cannot return a value. Echo can be followed by a number of parameters, separated by semicolons, such as:
Echo $myvar 1 ; Echo 1 , 2 ,
Several problems encountered in the use of Phpexcel
Recently done projects, contact several phpexcel, the process encountered a few problems, now some common usage of phpexcel and I encountered problems and solutions summarized as follows. (It is
PHP Basics (5)-File upload
PHP Basics-File Upload
Sample code Download page http://xieye.iteye.com/blog/1336095
Enables users to upload text and binary files. With PHP's authentication and file manipulation functions, you have full control over
PHP unset destroys variables and frees memory issues
The following are quoted from http://leepiao.blog.163.com/blog/static/485031302010718105814266/, a floating blog
?
?
The PHP unset () function is used to clear, destroy variables, and we can
Summary of Cookies in PHP5 (i)
I. Configuration and application of cookies
Set cookies
BOOL Setcookie (string name [, string value [, int expire [, String path [, string domain [, bool secure]]]);
?
Delete Cookies
BOOL Setcookie (name,
Video-03 No.2 PHP Basic syntax
?
?
");/* Data type conversion: Cast * GETTYPE (): Gets the type of a variable, the return value is a type String */$sum = 25.6;echo GetType ($sum), $count = (int) $sum; Echo GetType ($c Ount); Echo ($count);
Ways to optimize PHP programs
1. If a method C++an be static, declare it static. Speed improvement are by a factor of 4. If a method is static, it is statically declared. The rate can be increased to 4 times times.
2. Echo is faster than print.
Understanding of the PHP garbage collection mechanism
This paper mainly discusses the difference of garbage collection mechanism between PHP5.2 and 5.3.
?
5.2 Is recycled using the "reference count" method. Simply understood, there is a counter in
Starting with a PHP face question.
Interview Topics:
?
?
Setcookie (' name ', ' test '); Echo $_cookies[' name '); Please say the result of the program (you can say the difference between the first and second time)
Originally, I thought it was
Summary of PHP Chinese garbled problem
PHP Chinese garbled is one of the common problems in PHP development.
php Chinese garbled when it occurs in the Web page itself, some of the production is in the process of MySQL interaction, and sometimes
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