[PHP-users 17138]Re: UNIQUE値かどうかのチェック

ISHIZUKA,Takeshi meteor @ cds.ne.jp
2003年 8月 4日 (月) 20:48:49 JST


typo.

$a_Hoge = array ( 'ほげ', 'ふが', 'ほげ', 'ほげふが', '', '' );
foreach ( array_count_values ( $a_Hoge ) as $s_Key => $s_Value ) {
        if ( $s_Key !== '' && $s_Value > 1 ) {
 	       echo $s_Key . 'はダブってます。' . "\n";
	}
}
>$a_Hoge = array ( 'ほげ', 'ふが', 'ほげ', 'ほげふが', '', '' );
>foreach ( array_count_values ( $a_Hoge ) as $s_Key => $s_Value ) {
>        if ( $s_Key !== '' && $s_Value > 1)
>        echo $s_Key . 'はダブってます。' . "\n";



PHP-users メーリングリストの案内