//絶対パス
echo __FILE__ . '';
//ディレクトリパス
echo dirname(__FILE__) . '';
//スクリプト名
echo basename(__FILE__) . '';
echo $_SERVER["SERVER_NAME"];
echo $_SERVER["SCRIPT_NAME"];
echo '?';
echo $_SERVER["QUERY_…
$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.stristr.php
この投稿へのコメント
コメントはまだありません。