asort ($res_get_email,SORT_STRING);
sort (配列,パラメータ);
このパラメータを次の3つから選択することで並べ方をコントロールすることができます。
SORT_REGULAR - 通常通りに項目を比較
SORT_NUMERIC - 数値的に項目を比較
SORT_STRING - 文字列として項目を比較
参考URL:http://w1.nirai.ne.…
$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
この投稿へのコメント
コメントはまだありません。