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!";?>
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;
?> ;
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.