Re: cvs: phpdoc /en/reference/mysql/functions [snip]

From: Date: Fri, 20 Feb 2004 17:56:05 +0000
Subject: Re: cvs: phpdoc /en/reference/mysql/functions [snip]
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969359109@lists.php.net to get a copy of this message
On Fri, Feb 20, 2004 at 06:49:03PM +0100, Georg Richter wrote: > What the heck are you doing?? > > Georg Converting examples to the "preferred method"s of doing something... quotes from the CS: > ERROR HANDLING > > This section isn't yet complete but there are three main ways to > implement error handling in the PHP manual: > > a) Use of the 'or' operator. > > This is okay for development code but not ideal for production as use > of 'or' is rather limiting. An example use: > > foobar($lname) or die(...); > > b) A boolean check, along with {braces} > > This allows additional expressions inside the {braces} but requires > more code. This is the preferred method. An example use: > > if (!foobar($lname)) { > ... > exit; > } > > d) trigger_error() > > There is debate on whether to use trigger_error() in the examples fo for > now, do not use it (at least until the error handling docs are updated). > 3. Use single quotes ' when appropriate. And some examples weren't working. -- Regards, Stefan Walk <swalk@prp.physik.tu-darmstadt.de>

« previous php.doc (#969359109) next »