Derick Rethans wrote:
On Sat, 15 Apr 2006 [EMAIL PROTECTED] wrote:
The following is a direct excerpt from the PHP manual on empty, and isset:
bool *empty* ( mixed var )
bool *isset* ( mixed var [, mixed var [, ...]] )
Is there a reason empty does not allow multiple variables at a time, as
I'm looking for a Reference Manual for the Zend API and/or PHP Internals.
I've found about forty 'leven how-to and learn by example talks,
slide-shows, tutorials, etc for writing a PHP extension. Don't get me
wrong, these are great!
But they leave me with questions about a bunch of macros and
On Sun, April 16, 2006 4:40 pm, Derick Rethans wrote:
On Sat, 15 Apr 2006 [EMAIL PROTECTED] wrote:
There is a thought about it, and that is that we could not decide
whether it should be an AND or an OR test between the different
parameters.
I'm curious to know whoulda thunk it would be OR,
As empty is quite the contrary of isset, the OR would be preferable
over AND.
Indeed:
if(!empty($var1) !empty($var2))
could be simplified to
if(!empty($var1, $var2))
Regards.
--
Etienne Kneuss
http://www.colder.ch/
[EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing
On 4/17/06, Lukas Smith [EMAIL PROTECTED] wrote:
Derick Rethans wrote:
On Sat, 15 Apr 2006 [EMAIL PROTECTED] wrote:
The following is a direct excerpt from the PHP manual on empty, and isset:
bool *empty* ( mixed var )
bool *isset* ( mixed var [, mixed var [, ...]] )
Is there a reason
Indeed, especially as everyone will tell you that isset and empty are
equivalent.
Are you saying that people misunderstand that or that you believe that
to be true? I see that misunderstanding a lot. I have to educate
people on that. They don't seem to grok the subtle, yet crucial (and I
http://lxr.php.net should help you with decoding all those macros.
But if it's a reference you want: [plug]Extending and Embedding PHP:
Available soon from Amazon.com and other fine retailers[/plug]
A not-insignificant percentage of the appendices is made up of just this
kind of API
On Sun, April 16, 2006 6:25 pm, Etienne Kneuss wrote:
As empty is quite the contrary of isset, the OR would be preferable
over AND.
Sorry, folks!
I meant the other way 'round...
Whatever it is you check with a zillion form inputs, that's what you'd
want.
When would you need it the other way
On Sun, April 16, 2006 10:15 pm, Steph Fox wrote:
It's on the TODO.
Can I be the Village Idiot Editor that mis-reads everything in every
way you couldn't have imagined? :-v
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe,
I already know that.
There's a 404 in the zend.com error_log, as of a half-hour ago, for
the 3rd installment of her articles on writing extensions... :-)
On Sun, April 16, 2006 10:15 pm, Steph Fox wrote:
and I'll also back Sara :) she's good.
- Original Message -
From: Sara Golemon
What it comes down to, is it runs the exact same code on the variables,
I just changed the method of which they were called (ie: allowed multiple.)
On 4/16/06, Richard Lynch [EMAIL PROTECTED] wrote:
On Sun, April 16, 2006 7:38 pm, Pierre wrote:
isset and empty share the same implementation,
Please take this conversation off-list. There isn't a 3rd installment
published on zend.com and you're using up a lot of bandwidth.
I already know that.
There's a 404 in the zend.com error_log, as of a half-hour ago, for
the 3rd installment of her articles on writing extensions... :-)
On
12 matches
Mail list logo