I've var dumped my array:
array(4) { [0]=> string(72) "
1
" [1]=> string(57) "
2
" [2]=> string(63) "
›
" [3]=> string(63) "
»
" }
When I check:
empty($myArray);
It always says true. Why is this?
I've var dumped my array:
array(4) { [0]=> string(72) "
1
" [1]=> string(57) "
2
" [2]=> string(63) "
›
" [3]=> string(63) "
»
" }
When I check:
empty($myArray);
It always says true. Why is this?
Try to use
count($myArray) == 0
instead