Thread: return keyword
View Single Post
Old 06-27-2008, 06:05 AM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by delayedinsanity View Post
Sorry, I may be the only one, but I'm not following. What are you trying to do?

Most of the methods and functions I use return data (a lot of those simply because all I want is a boolean response from them). I do use a few that directly output data using echo or other means, and they display that data where ever I want them to, based on where I put the function call.

Edit: I gotta ask why do you hate return? The basic idealogy behind a function is that it returns something, a value, be it boolean, data, etc. Look at PHP's built in functionality. substr() doesn't directly echo data, it returns it to you.
-m
Cause it hates eval() | assert()
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote