note 32494 deleted from function.getopt by nicos

From: Date: Thu, 29 May 2003 20:56:29 +0000
Subject: note 32494 deleted from function.getopt by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49307@lists.php.net to get a copy of this message
Note Submitter: csnyder of chxo/com ---- /me slaps forehead. You could just test for isset($options['e']), which would return TRUE even though $options['e'] was FALSE. #!/usr/local/bin/php <?php $options = getopt("abcdef"); if (isset($options['e'])) print "I took e!"; ?>

« previous php.notes (#49307) next »