2010年06月11日 過去Blog
要素Aが配列Bの中に存在するか調べるには in_array を使う。 以下の例では、配列Bの中に要素Aが存在するので「Got elementA」が出力されます。 $arrayB = array(“elementA”, “NT”, “Irix”, “Linux”); if (in_array(“elementA”, $arrayB)) { echo “Got elementA”; }

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

php MySQL 2つのテーブルを縦に並べて結合(union)し、結果を抽出する

2010年03月30日 過去Blog
select c1,c2,c3 from A union all select c1,c2,c3 from B 参照元:http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1115439551 divorce lawyer san diego…
「php MySQL 2つのテーブルを縦に並べて結合(union)し、結果を抽出する」をはてなブックマークに追加

PHP strstr stristr ある文字列が含まれるかどうか調べる

2010年06月11日 過去Blog
$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 strstr stristr ある文字列が含まれるかどうか調べる」をはてなブックマークに追加

AVIファイルからSWF作成 MotionSWF

2010年10月07日 過去Blog
AVIからSWFファイルに変換する際に便利なソフト MotionSWF http://www.vector.co.jp/soft/dl/win95/art/se226046.html vps…
「AVIファイルからSWF作成 MotionSWF」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy