FALSE ARRAY!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

FALSE ARRAY!

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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);
?>
Post Reply