asort ($res_get_email,SORT_STRING);
sort (配列,パラメータ);
このパラメータを次の3つから選択することで並べ方をコントロールすることができます。
SORT_REGULAR - 通常通りに項目を比較
SORT_NUMERIC - 数値的に項目を比較
SORT_STRING - 文字列として項目を比較
参考URL:http://w1.nirai.ne.…
この投稿へのコメント
コメントを残す
ピックアップ記事
PHP 配列の並び替え
2010年05月21日
過去Blog
Ushahidi API の使用方法
2011年04月08日
過去Blog
http://wiki.ushahidi.com/doku.php?id=ushahidi_api(英語版)
http://wiki.ushahidi.com/doku.php?id=ushahidi_api_jp (日本語版) web hosting reviews…
mySQL上で登録された内容に一致する文字列を置き換え
2009年12月25日
過去Blog
以下のようにSQLを実行することで該当箇所が置き換えされます。
phpのstr_replaceのような感じ。
UPDATE `テーブル名` SET フィールド名 =REPLACE (フィールド名,"置き換え前文字列","置き換え後文字列"); limo service san diego…
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
のインストールは完了しました。
…
htmlファイルでphpを動かすための.htaccessファイルの設定
2009年11月20日
過去Blog
htmlファイルでphpを動かすための.htaccessファイルの設定
.htaccessファイル内に以下の行を記述します。
AddType application/x-httpd-php .htm .html
当然の前提条件として、htaccessの動作が許可されているサーバに限ります。…
Nice site, nice and easy on the eyes and great content too.
Dear tax exemption, Esq.>
Thank you for your comment.
The thing that this site was read by the foreigner like you is very glad for me.
And, I am very surprised.
Thank you sincerely.