![]() |
return keyword
Is this the ONLY bloody keyword to not allow data go up at the top
My problem is, I want to kill "return" in the function scope. I hate it, and it's the only thing I know that will allow me to return data without making it go to the top of the canvas of the page. PHP Code:
|
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 |
Quote:
|
I have no idea what your on about. the only thing i can even remotely imagin you can mean is:
PHP Code:
|
Quote:
|
Why do you need to use the return keyword with eval, just out of curiosity
|
What are you talking about?
PHP Code:
|
Quote:
|
Why not just do this?
PHP Code:
|
| All times are GMT. The time now is 07:59 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0