[ create a new paste ] login | about

Link: http://codepad.org/CQHZnWMY    [ raw code | output | fork ]

PHP, pasted on Aug 26:
1
2
3
4
5
6
7
8
9
10
11
<?php 
$array = array(
    'name' => '',
    'other' => "test"
);

if (count(array_filter($array)) != count($array)) {
    echo "missing at least one input";
} else {
    echo "ok";
}


Output:
1
missing at least one input


Create a new paste based on this one


Comments: