Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function functionFoo(&$var) {
- $var = "bar";
- }
- class Foo {
- function __construct() {
- }
- function doSomething() {
- $var = "foo";
- print $var . "\n";
- functionFoo($var);
- print $var . "\n";
- }
- }
- $foo = new Foo();
- $foo->doSomething();
- ?>
Add Comment
Please, Sign In to add comment