3.php redirect web page // For example, redirect to www.cgsir"/> 3.php redirect web page // For example, redirect to www.cgsir">

Home >Backend Development >PHP Tutorial >photoshop cs2 v9.0 green Chinese version PHP common function tips

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

WBOY
WBOYOriginal
2016-07-29 08:38:511091browse

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.

Statement:
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
Previous article:Object-oriented design PHP object-oriented analysis and design principles of experienceNext article:Object-oriented design PHP object-oriented analysis and design principles of experience

Related articles

See more