Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
// 重定向到另一个页面
$v = rand(0,3);
if ( $v == 1 )
{
// echo PHP_EOL.'header1'.PHP_EOL;
header('Location: http://www.example.com/');
// echo PHP_EOL.'header2'.PHP_EOL;
exit;
}
else
{
echo PHP_EOL.'var_dump($v);'.PHP_EOL;
var_dump($v);
}
?>