how to debug php?
Of course, you can put echo or print statements somewhere in the debugged php file to print some messages or value of variables. More convenient way is using an IDE […]
Of course, you can put echo or print statements somewhere in the debugged php file to print some messages or value of variables. More convenient way is using an IDE […]
An array can be converted to an object in PHP. <?php $a=array(“aa”,”bb”); $a=(object)$a ?> However you can not access the member of $a because there is not a name for […]
strip_tags(“hello <p> world</p>”)–> “hello word” list($a,$b,$c)=$myarray; $a<=$myarray[0],$b<=$myarray[1],$c=$myarray[2] compact(“variablename1″,”variablename2″,…”) returns an array whose members are “variablename1″=>$variablename1, “variablename2″=>$variablename2, …. if $variablename is not in the current scope, compact won’t include it. array_rand($arr) […]
In the previous chapter, we know wp-settings.php is a complex file. This file loads almost everything like plugins and active theme. We will look into it further. After including plugin […]
dirname in php may not be what you think it to be: given a full path name of a file, return its directory part. In fact, dirname(pathname) returns the parent […]
The first php file loaded when you access a WordPress site is index.php under the root directory of the site. It is a very simple file with only 2 lines […]
A C programmer often uses include statement in PHP, but when you read professional PHP scripts, you may find require/require_once is more common. What are the differences between include, require, […]
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! Did you like this?Tip admin with Cryptocurrency Bitcoin Ethereum Donate Bitcoin to admin Scan the […]