複製することが可能かどうか疑問に思っています:
if ($a = 1) {
header('Location: http://google.com');
exit;
} else {
header('Location http://yahoo.com');
exit;
}
速記を使用しますか?多分...
$a = 1 ? header('Location: http://google.com') : header('Location http://yahoo.com');
exit;
これは機能していないようです。つまり、私は常にgoogleにリダイレクトされます。=(