1. Return the file extension
function getformat($file)
{
$ext=strrchr($file,".");
$format=strtolower($ext);
return $format;
}
2. Format variable
$num = 1;
printf("%04d", $num);
?>
3.php redirect webpage
// For example, redirect to www.cgsir.com (note No html content before redirection)
header("location:http://www.jb51.net");
or
echo "echo '} ' ;
echo 'document.onload = setTimeout("Jump()" , 2 * 1000)';
echo '';
echo '< ;a href="index.php">Return directly
';
echo '
The above introduces the tips on common PHP functions of photoshop cs2 v9.0 green Chinese version, including the content of photoshop cs2 v9.0 green Chinese version. I hope it will be helpful to friends who are interested in PHP tutorials.