photoshop cs2 v9.0 green Chinese version PHP common function tips

WBOY
Release: 2016-07-29 08:38:51
Original
1068 people have browsed it

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 '

';
exit( 0);
}
else
{
echo 'You are not logged in yet! ';
}
include_once('includes/footer.php');
?>

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.

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template