Page 1 of 1

FALSE ARRAY!

Posted: Fri Jan 24, 2003 1:10 pm
by kendall
hi i got a question

if i had $ErrorMsG[] = function
and the function returned nuthing or false

if(is_array($ErrorMsG)) will it be true?

im trying to determine this but in some code i have but i have reached the point where im re-coding just to find out if its an error on my path or that the code syntaxs is rong

KEndall

Posted: Fri Jan 24, 2003 1:26 pm
by volka
why don't you just try it?

Code: Select all

<?php
function getFalse()
{
	return FALSE;
}

$ErrorMsG[] = getFalse();

if (!is_array($ErrorMsG))
	echo 'not an array';
else
	echo var_dump($ErrorMsG);
?>