Re: Coding Question

From: Date: Mon, 06 Dec 2004 06:43:52 +0000
Subject: Re: Coding Question
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-203563@lists.php.net to get a copy of this message
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 */

« previous php.general (#203563) next »