Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pass-by-reference.php 108B

1234567
  1. <?php
  2. function foo (&$arg) {
  3. $arg = 'something else';
  4. }
  5. $baz = 'something';
  6. foo($baz);
  7. print $baz . "\n";