$string = 'Hello World!';
if(stristr($string, 'earth') === FALSE) {
echo '"earth" not found in string';
}
// 出力は "earth" not found in string となります
参照元:http://www.php.net/manual/ja/function.st…
phpで少し時間をおいてから処理を実行したい場合は、sleepを使います。
例)
<?php echo "最初の処理"; //3秒後に実行 sleep(3); //処理再開 echo "遅延後の処理"; ?>
graffiti on the web
この投稿へのコメント
コメントはまだありません。