Okay...making some progress but:
Given the array:
$NEWDATA=Array ( [1111045] => Array ( [1] => 0 [2] => ) [1111055] => Array ( [1] => [2] => ) [1200020] => Array ( [1] => [2] => 3 ) [1200025] => Array ( [1] => [2] => ) ) ;
My scripting of the Laserlight version
function contains_only_nulls_lazer($array) {
foreach ($array as $value) {
if (!is_null($value)) {
return true;
}
}
return false;
}
foreach ($NEWDATA as $id=>$testscores)
{
echo "<br>$id: ".call_user_func('contains_only_nulls_lazer',$testscores)."";
}
Gives me this output:
1111045: 1
1111055: 1
1200020: 1
1200025: 1
And the Weedpacket version:
function contains_only_nulls_weedpacket($array)
{
return count($array) == count(array_keys($array, null, true));
}
foreach ($NEWDATA as $id=>$testscores)
{
echo "<br>$id: ".call_user_func('contains_only_nulls_weedpacket',$testscores)."";
}
Gets me this:
1111045:
1111055:
1200020:
1200025:
I suspect it may have something to do with my use of call_user_func ... like I say I'm not too familiar with this yet.
Thanks for everyone's help so far.