Re: UNLESS Statement Equivalent

From: Date: Mon, 11 Mar 2013 23:25:33 +0000
Subject: Re: UNLESS Statement Equivalent
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-320477@lists.php.net to get a copy of this message
On Mar 11, 2013, at 4:10 PM, Jonathan Sundquist wrote: > the variable $current_page does not exist. That was my problem. :( I've been staring at this for too long. Too bad there's not a 'use strict' pragma. > I would also suggest keeping with your original statement to return early and return often. Its > best to exit out of your functions sooner than later. Specially if its a large function. O.K. I just thought there might be a more elegant way of doing it. I at least got rid of the else statement like you mentioned. Thanks for your help, Angela

« previous php.general (#320477) next »