Is it possible to get empty array(array with 0 items) value via $_GET
?
Is it possible with direct value setting?
count($_GET['param'])==0
Is it possible to get empty array(array with 0 items) value via $_GET
?
Is it possible with direct value setting?
count($_GET['param'])==0
If array is empty or containing values that doesn't matters. Just declare a variable and pass the $_GET[] to the variable.
for example,
$para=$_GET['param'];
and now
if(is_array($para))
{
//
}
else{
$para=new array();
}