fork download
  1. <?
  2. function hoge_r(&$s) {
  3. $s[1] = "1";
  4. }
  5.  
  6. function hoge($s) {
  7. hoge_r($s);
  8. }
  9.  
  10. $a = "abc";
  11. $b = $a;
  12. hoge($a);
  13. print $a."\n";
  14.  
  15. hoge_r($a);
  16. print $a."\n";
  17. print $b."\n";
  18.  
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
abc
a1c
abc