Re: Coding Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 06 December 2004 14:19, Rory Browne wrote:
> If I'm not mistaken Al wanted to return something if the thing failed,
> without having to put it inside an if_block.
>
> I'm watching this with curiosity, because return is a language
> construct, and not a function, or anything that has a value.

You can have:

  ... OR $error = "Oh dear";

But the say I see it, eventually, somewhere in your code you need to test for 
it. Essentially you're just moving the test somewhere else.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
There's a whole WORLD in a mud puddle!
  -- Doug Clifford
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux