Skip to content

Instantly share code, notes, and snippets.

@Zerquix18
Created June 11, 2014 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zerquix18/1587f166f3179b683fd4 to your computer and use it in GitHub Desktop.
Save Zerquix18/1587f166f3179b683fd4 to your computer and use it in GitHub Desktop.
Playing with PHP syntax — This is me when I'm bored...
<?php
$lol = "lol";
define("HAHA", $lol, 1);
class ja {
function jaja() {
return 'This will be the result';
}
}
class nose {
function lol(){
return array(0, new ja() );
}
}
function lol() {
return array( new nose() );
}
echo ${HaHa}()[0]->{${$lol}}()[1]->jaja();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment