[ create a new paste ] login | about

Link: http://codepad.org/fiN1jH0s    [ raw code | output | fork ]

misterunknown - PHP, pasted on Mar 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?

// Example for dynamic variables and variable functions

function foobar() { echo "FooBar"; }

$func = "foobar";

$caller = "func";

$$caller();

?>


Output:
1
FooBar


Create a new paste based on this one


Comments: