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 ) ... ... <看更多>
PHP arrays should be declared using the configured syntax. ... Add curly braces to indirect variables to make them clear to understand. Requires PHP >= 7.0. ... <看更多>