配列 $array_exampleの要素のなかで、空白のものを削除。
$array_example = array_filter($array_example, 'strlen');
$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
graffiti on the web
この投稿へのコメント
コメントはまだありません。