php key max
php key max
Out of context: Reply #4
- Started
- Last post
- 10 Responses
- deplifer0
How does your multidimensional array look?
What are you looking for?
if your key has an name as
$array = array(key1 => 100,
key2 =>200,..);you can simply find the value of key2 by indexing the name ::
$value = $array['key2'];or to operate on the array use
foreach($array as $value){
// operate on $value
}foreach($array as $key => $value){
// do stuff
}