Forum Moderators: coopster
$angka = array( 1 => 'satu', 2 => 'dua', 3 => 'tiga', 4 => 'empat', 5 => "lima", 6 => 'enam', 7 => 'tujuh', 8 => 'delapan', 9 => 'sembilan' );
How do i do a search on this array to see if the value 'enam' is in the array? Is there a function that i can use? Thanks.
If you would like to get the given key, try $key = array_search("enam",$angka); (will return 6);
[se.php.net...] [se.php.net...]