Hello Sean,

  I should have clarified this -- The following is how I do it all the
  time.  It's just a bit longhanded for something that is done so
  often.

  $email = (isset($_GET['email']) ? $_GET['email'] : '');

  It get's even messier when you want to get something like this:

  $value = (integer) (isset($myBigArray['SomeKey1']['SomeOtherKey']) ?
  $myBigArray['SomeKey1']['SomeOtherKey'] : 0);
  
  where

  $value = ifsetor($myBigArray['SomeKey1']['SomeOtherKey'], 0);

  is a bit cleaner.

  Thanks.

-- 
Best regards,
 Jason                            mailto:[EMAIL PROTECTED]

Monday, June 6, 2005, 1:22:11 PM, you wrote:

SC> Jason Garber wrote:
>>   If there was any way to accommodate this with userland PHP code, I
>>   would have already done it.  However it is an engine level function
>>   that has to be added to the core of PHP.

SC> For the record, I also find ifsetor useful, but what you want can be
SC> accomplished like this:

SC> $email = isset($_GET['email']) ? $_GET['email'] : 'no email address';

SC> ifsetor would make this much nicer, but there /is/ a way to accomplish
SC> what you want in userland.

SC> S

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to