Things in php that made you go WHOA!

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

Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

i think y'all lost site of the fact that i didn't write the code...and to continue in that line of thought..i just didn't know you could do that and it caught me off gaurd.. so be nice :-D
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Short tags is evil.

Even more evil are short tags with an = rather than just echo'ing or in this case reponse.write'ing.

You want to see horrible ugly code? Go read some ASP where they use lot's of nasty for loops and shortcuts to echo'ing. You can hardly read it.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Charles256 wrote:i think y'all lost site of the fact that i didn't write the code...and to continue in that line of thought..i just didn't know you could do that and it caught me off gaurd.. so be nice :-D
I feel you. There was something posted here once about looping the a string char by char using a really cool method. I had no idea that could be done. (I didn't mention it earlier because I can't find the link to that thread). Anyway, sorry if it seemed like I was bashing you. I just jumped on the bandwagon without thinking about it too much.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

We love our bandwagons - social bashing is addictive...:)
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

but not nice. you offended a valuable member of the community.. : sniffles, peeks around to check for apologies: LOL. Yeah..i've seen some ASP code..promptly put it down.lol
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

WooHoo, I found it! This the thread in which pickle taught me that you can walk a string like an array. I had no idea you could that.

EDIT | Thanks to nathaniel who brought to my attention that I had inadvertently and inappropriately given no credit where credit was due AND gave credit where no credit was due. Sorry pickle.
Last edited by RobertGonzalez on Fri Jun 09, 2006 5:47 pm, edited 1 time in total.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Charles256 wrote:but not nice. you offended a valuable member of the community.. : sniffles, peeks around to check for apologies: LOL. Yeah..i've seen some ASP code..promptly put it down.lol
Classical ASP (ASP.OLD) is nasty. Never liked it. The new ASP (ASP.NET - specifically C#) is pretty tight. Haven't had nearly the time I want to be able to learn it, but I will someday. It is pretty cool.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

ASP.NET C# is nice and I don't know the extent of it's features but it still isn't open source. :(

PHP is proving to be incredibly powerful as I learn more about it.
Post Reply