PHP's empty () determines if a variable doesn't exist or has a falsey value (like array() , 0 , null , false , etc). In most cases you just want to check !$ ... <看更多>
An empty array in PHP is considered falsey. That means the following will not print anything as the array is empty. <?php $myArray = array() if ( $myArray ) ... ... <看更多>