[ create a new paste ] login | about

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

PHP, pasted on Jan 22:
1
2
3
4
5
6
7
8
<?php
function test()
{
  $GLOBALS [ "test" ] = "value";
}
test();
print ( "My variable: " . $test . "\n" );
?>


Output:
1
My variable: value


Create a new paste based on this one


Comments: