What is your favorite php statement?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
SmokyBarnable
Forum Contributor
Posts: 105
Joined: Wed Nov 01, 2006 5:44 pm

What is your favorite php statement?

Post by SmokyBarnable »

What is your favorite php statement?

mine is IF.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Code: Select all

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

Code: Select all

while (true)
{
    echo "echo ";
}
Last edited by Luke on Tue May 01, 2007 2:03 pm, edited 1 time in total.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Statement? Can I just name my favorite PHP function? (NON-user defined)

print_r ftw :D
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I don't have a favorite function name.. they are all equally friendly :lol:
User avatar
OasisGames
Forum Commoner
Posts: 26
Joined: Mon Apr 23, 2007 3:24 pm
Location: Ohio

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 {

}
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

My favorite powerful combo: die(var_dump($something));
User avatar
the_last_tamurai
Forum Commoner
Posts: 87
Joined: Wed Feb 28, 2007 8:24 am
Location: cairo
Contact:

Post 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)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

My favorite statement will be the one out PHP.NET the announces the death of PHP4.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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?!?!?!?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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. :)
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Don't be shy... what's the name of this project? :P
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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.
Post Reply