Answers for "php empty array create"

PHP
17

array empty check in php

if (empty($array)) {
     // list is empty.
}
Posted by: Guest on April-15-2020
1

declare empty array in php

$emptyArray = []; 
$emptyArray = array();
$emptyArray = (array) null;
Posted by: Guest on May-25-2020

Browse Popular Code Answers by Language