PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Volka, I have to say that that's the uglies hunk of code I've ever seen. I thought ternary operators were bad. Are you sure that's not Perl? Seriously, what is it?
Oooohh, wait a sec! Is this thing testing the output of echo, then making a decision based on that? If so, that's a cool trick! I'll have to keep that one in mind. Now I see why your moniker is extreme Guru.
Shhh, there may be Perl developers around To be honest I do that when I'm lazy or if I'm prototyping, it's a quick way to do an if/else, or a lazy one, your choice.
Not exactly plain to see what going on, but once you have it sussed it kinda grows on you.
In fact. I would go so far as to defend it if PHP decided to remove it from the feature set. Won't go on a demonstration or anything, but probably TYPE IN CAPS FOR A WHILE