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


ピックアップ記事

Zencart : セッションについて

2009年11月20日 過去Blog
Zencartのセッションについてですが、以下の環境に該当する場合は、少々対応が必要なようです。 サーバが専用SSLではなく、共用のSSLを利用している。 カスタマイズの際にURLをそのまま張り付けて使用している。 静的htmlへのリンクがZencartのサイト内に含まれている。 私の管理するZencartのサイトは上記の全てに当てはまっていました・・・orz 解決策の前にZencartのセッションの基本的な仕組みについて説明したいと思います。 …
「Zencart : セッションについて」をはてなブックマークに追加

phpmyadmin のインポートサイズの最大値を変更する

2010年04月03日 過去Blog
php.iniを適当なサイズに変更します。 memory_limit 32M post_max_size 50M upload_max_filesize 50M php.iniを変更したら httpdをリスタートします。 service httpd restart これで、大きなサイズでもインポート可能になります。 cheapest generic xanax…
「phpmyadmin のインポートサイズの最大値を変更する」をはてなブックマークに追加

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加

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 ある文字列が含まれるかどうか調べる」をはてなブックマークに追加

phpでwhois情報の取得

2009年12月26日 過去Blog
Net_Whois::query() – whois 問い合わせを実行する pear install Net_Socket pear install Net_Whois もし、「WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update」 という警告が出る場合は、以下を実行して、pear.php.netをアップデートします。 # pear channel-update pear.php.net 私の場合は、警告は出ましたが、アップグレードしなくても pear install Net_Socket pear install Net_Whois のインストールは完了しました。 …
「phpでwhois情報の取得」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy