Thread: Functions?
View Single Post
  #4 (permalink)  
Old Feb 3rd, 2008, 15:58
Jack Franklin's Avatar
Jack Franklin Jack Franklin is offline
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,310
Blog Entries: 8
Thanks: 10
Thanked 5 Times in 5 Posts
Re: Functions?

Thanks to both of you.
Alex, I understand your first example but not this one:
PHP: Select all

function isTrue($b) {
if(
$b == true) { return true; } else { return false; }
}

//the following will output hi
if(isTrue(1)) { echo 'hi'; } 
Rakuli, thanks for your post. Bookmarked this thread
__________________
Resources Administrator


Reply With Quote