Skip to content

Instantly share code, notes, and snippets.

@Cifro
Last active December 11, 2015 22:09
Show Gist options
  • Save Cifro/4667757 to your computer and use it in GitHub Desktop.
Save Cifro/4667757 to your computer and use it in GitHub Desktop.
Funception in PHP - We need go deeper
<?php
/**
* Alterantive Funception in PHP
* All functions are in the global scope
*/
function We(){
echo "We ";
function need(){
echo "need ";
function go(){
echo "go ";
function deeper(){
echo "deeper";
}
}
}
}
We();
need();
go();
deeper();
<?php
/**
* Funception in PHP
*/
function We(){
echo "We ";
function need(){
echo "need ";
function go(){
echo "go ";
function deeper(){
echo "deeper";
}
deeper();
}
go();
}
need();
}
We();
@fprochazka
Copy link

* to go

@Cifro
Copy link
Author

Cifro commented Jan 29, 2013

Same fucked up grammar as Y U NO ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment