$var1=1; $var2=2; $var3='';
$array= array ( $var1 , $var2, $var3 );
echo count($array);
// Result (3)
I want the count result to be (2) and if possible without looping. I wonder if there's a way since I assume there are 3 keys counted. How do I eliminate the key with an empty value? This can simplify a lot of things to me.
count(array_filter($array));call_user_func_array, that's coming frimmysqli_stmt_bind_param. The first argument is a string with the types of each placeholder, and the number of arguments has to match the size of that string.