-
If you have an array
$a = array( 0, 1, 2, 3, 4 );, how do you extract the value 3 from the array? -
If you have an array
$a = array( "zero"=>0, "one"=>1, "two"=>2, "three"=>3, "four"=>4 );, how do you extract the value 3 from the array? -
If you have the following array, how do you extract the value 3 from the array?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $states = [ | |
| 'JHR' => 'Johor', | |
| 'KDH' => 'Kedah', | |
| 'KTN' => 'Kelantan', | |
| 'MLK' => 'Melaka', | |
| 'NSN' => 'Negeri Sembilan', | |
| 'PHG' => 'Pahang', | |
| 'PRK' => 'Perak', | |
| 'PLS' => 'Perlis', | |
| 'PNG' => 'Pulau Pinang', |
NewerOlder