Page 1 of 2

What is your favorite php statement?

Posted: Mon Apr 30, 2007 8:00 pm
by SmokyBarnable
What is your favorite php statement?

mine is IF.

Posted: Mon Apr 30, 2007 8:05 pm
by Luke

Code: Select all

echo "echo";
EDIT: I like this one ever better...

Code: Select all

while (true)
{
    echo "echo ";
}

Posted: Mon Apr 30, 2007 8:26 pm
by d3ad1ysp0rk
Statement? Can I just name my favorite PHP function? (NON-user defined)

print_r ftw :D

Posted: Mon Apr 30, 2007 8:52 pm
by John Cartwright
I don't have a favorite function name.. they are all equally friendly :lol:

Posted: Mon Apr 30, 2007 9:19 pm
by OasisGames
Meh, PHP-wise, nothing special...


However, if you made this a little more open, possibly, what is your favorite built-in function in a programming language, I'd say "kill" in Visual Basic.

Posted: Tue May 01, 2007 12:50 am
by Chris Corbyn
Yeah I don't really have one...
SmokyBarnable wrote:What is your favorite php statement?

mine is IF.
I'd to see a new one introduced.

Code: Select all

<?php

if ( ... ) {

}
elseif ( .. ) {

}
whatif( ... ) {

}
else {

}

Posted: Tue May 01, 2007 2:16 am
by Weirdan
My favorite powerful combo: die(var_dump($something));

Posted: Tue May 01, 2007 3:12 am
by the_last_tamurai
When I just see the thread name ...I decided to post die() but weirdan already catch it ..... :evil:

my second is print_r(); unfort. already catched also :(

so my favorite is :

Code: Select all

/* work is done */
8)

Posted: Tue May 01, 2007 6:57 am
by feyd

Posted: Tue May 01, 2007 11:19 am
by Buddha443556
My favorite statement will be the one out PHP.NET the announces the death of PHP4.

Posted: Tue May 01, 2007 11:25 am
by RobertGonzalez
Mine isn't so much a statement as a question in my earlier days of learning the language...

Why the hell are you doing that?!?!?!?

Posted: Tue May 01, 2007 11:40 am
by Jenk
After spending the afternoon trawling through utterly disgusting code of a VERY popular project, my statement is non-repeatable on these boards, but it resembles:

How in the juddering blazes did this project ever become popular?

Posted: Tue May 01, 2007 11:43 am
by feyd
Jenk wrote:After spending the afternoon trawling through utterly disgusting code of a VERY popular project, my statement is non-repeatable on these boards, but it resembles:

How in the juddering blazes did this project ever become popular?
Sounds like any project that inherits legacy code. :)

Posted: Tue May 01, 2007 11:48 am
by Oren
Don't be shy... what's the name of this project? :P

Posted: Tue May 01, 2007 11:51 am
by Jenk
Aye, that's just about exactly what it is. Someone's framework that has just had more and more stuff glued on, but the people doing the glueing aren't too hot at development.