I have this JSON data:
["","","","","","",""]
When decoded, it turns into:
Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => )
When I try to validate using empty() in PHP, it still returns true
. I aware that PHP will accept that array as FALSE
if it is only empty array: Array()
.
Actually I intended to replace those empty arrays into an empty string.
How to treat that array with empty string as 'totally empty' array?
Thanks.