array empty check in php
snippet in php

array empty check in php

user2988

if (empty($array)) {
     // list is empty.
}

check if array is empty php

user206

bool empty( $var )

php empty array

user2333

//To clear array you are able to simply re-instantiate it
$foo = array();

//To clear $foo from the symbol table use
unset($foo);

is empty php

user6702

empty($var)