Home > Backend Development > PHP Tutorial > Powerpoint2003 official download free full version PHP tips collection, every PHPer can show his skills

Powerpoint2003 official download free full version PHP tips collection, every PHPer can show his skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:35:55
Original
1394 people have browsed it

This post is mainly for all PHPers to summarize some of their experience and skills in development or learning, mainly to tell everyone better ways to solve certain things.
Let me talk about a few first:
1. If you use echo output A simple statement, similar to:

Copy code The code is as follows:

echo "Hello World!";
?>
Then you can be lazy and write it like this:
< ?="Hello World!";?>


2, str_replace() can use an array for replacement, such as:

Copy the code The code is as follows:

$string = "Welcome To The PHPCHINA.COM ,Have A Good Time.";
$search = array("Welcome To The PHPCHINA.COM", "Have A Good Time", ".");
$replace = array("PHP is very Good" , "I Like It", "!");
$newstring = str_replace($search, $replace, $string);
echo $string."
";
echo $newstring;
?> ;


Don’t hide all your experience, ^_^!
How small a skill is considered a skill?
I remember that I posted this cache variable function before. The cache directory needs to have read and write permissions for cache. There is also a function for scheduled refresh. I won’t write it out yet. Otherwise, it will appear that this technique is too big. In fact, it is more similar to the refresh mode of dz

Copy the code The code is as follows:

function getQueryCache($key){
                                                                                                    @include( $cacFile);
                                                                            acFile = "cache/" . $key . ".php";
$fp = fopen($cacFile, "w");
if(false != $fp){
fwrite($fp, "" );
                                 fclose($fp);
The above introduces the collection of PHP tips for powerpoint2003 official download free full version. Every PHPer will show their skills, including the content of powerpoint2003 official download free full version. I hope it will be helpful to friends who are interested in PHP tutorials.


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template