How can I convert an empty array to an empty string or null?
$empty_array = array();
var_dump($empty_array);
result,
array(0) { }
Also for an empty object below,
class null_object{};
$null_object = new null_object();
var_dump($null_object);
result,
object(null_object)#4 (0) { }
I am after null or just something like $empty_array = ''; whenever they are found empty.