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 <[EMAIL PROTECTED]>