Skip to content
Advertisement

Tag: associative

PHP mixed associative array how to get values in foreach loop

Well I have something like meaning that “a3” and “a4” are keys without values. I need to go through a foreach loop to get $key => $value pairs. Should be something with checking of isset($value) but it doesn’t work. UPDATE: Question is closed. Thanks to all. As it was written key without value is not a key, but value with

Advertisement