![]() |
Everything for a reason...
An entire forum for one of our newest members! How lucky!
http://www.talkphp.com/search.php?do=finduser&u=3595 |
hehe, that's interesting, but why not making it a broad section, like " From XX language to PHP Translation?
|
'Cause it is not a permanent fixture :-) British sarcasm at its finest!
|
haha oh ok :P
|
well thats just brilliant...
|
I lol'd (don't worry, I cleaned it up!)
|
Very nice.
|
Epic .:hehe:.
|
I have this Python script, make it PHP!
Python Code:
|
Quote:
PHP Code:
done with our beloved namespace separator! :) |
Actually this would make more sense:
PHP Code:
|
Great forum! :)
|
ETbyrne is right, but Kalle's code looks more impressive :P
|
Wrong! The correct translation is of course:
PHP Code:
|
That's nothing like the Python code at all. Pretty cool trick though!
|
Quote:
|
Quote:
Quote:
const Hello = … instead of the define('Hello'… which would work (as of PHP 5.3) thanks to the namespace support but figured that it would be a little too crazy for today. :-P |
Salathe, that snippet blows my mind. how does it work? is if using concatenation? WOW :O
|
Quote:
To be REALLY sarcastic you really should post it without wrapping it in PHP code tags, with some strange indentation to boot! define('Hello', 'Hello World!'); function world() { echo Hello; }Hello.world(); But that would be too cruel! |
Haha. You're cruel, you're cruel. But I like it very much :-) !
|
| All times are GMT. The time now is 03:56 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0