Array
(
[fruits] => Array
(
[item1] => orange
[item2] => banana
[item3] => apple
)
[veggie] => Array
(
[item1] => carrot
[item2] => collard
[item3] => pea
)
)
orange<br >carrot<br >not in array
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/RJJOr:16
Stack trace:
#0 {main}
thrown in /in/RJJOr on line 16
Process exited with code 255.
Output for 8.0.0 - 8.0.9
Array
(
[fruits] => Array
(
[item1] => orange
[item2] => banana
[item3] => apple
)
[veggie] => Array
(
[item1] => carrot
[item2] => collard
[item3] => pea
)
)
orange<br >carrot<br >not in array
Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /in/RJJOr:16
Stack trace:
#0 {main}
thrown in /in/RJJOr on line 16
Process exited with code 255.
Array
(
[fruits] => Array
(
[item1] => orange
[item2] => banana
[item3] => apple
)
[veggie] => Array
(
[item1] => carrot
[item2] => collard
[item3] => pea
)
)
orange<br >carrot<br >not in array
Warning: count(): Parameter must be an array or an object that implements Countable in /in/RJJOr on line 16
0count of food 0