![]() |
PHP Functions
I'm trying to create a function that will let me have as many arguments as I want, that does the same thing as empty() (returns true if any of the values are empty, false if they're all not empty)
PHP Code:
Any help would be appreciated. |
PHP Code:
PHP Code:
|
Much thanks baaf ^__^
*Gives you a cookie* |
I prefer this incomprehensible one-liner:
PHP Code:
|
Can I play too?
PHP Code:
|
This would make a fun contest :P
|
Mine would win the "least computationally expensive" award, I'm pretty sure.
|
PHP Code:
|
PHP Code:
Mine is the most concise, and the least computationally expensive out of those on this thread. Beat that. :D |
10 Party
20 Get started 30 goto 10 i win |
/me bows to xzxzzx while muttering, "I'll get you next time, grrr..." under the breath
But well done. :) |
PHP Code:
|
PHP Code:
:D |
baaf: Yup, it is computationally faster (I tested it). Damn. I still have the most concise, though. :p
|
this would get fun if php had inline assembler :p
|
| All times are GMT. The time now is 10:48. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.