jLinux

Untitled

Dec 10th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. function tester($count, $str){
  4.     $str = "Total count is $count";
  5. }
  6.  
  7. $count = 0;
  8. $str = "Total count is $count";
  9.  
  10. // $str === 'Total count is 0';
  11.  
  12. $str = tester($count, $str); // $str === 'Total count is 1';
  13.  
  14. $str = tester($count, $str); // $str === 'Total count is 2';
  15.  
  16. $str = tester($count, $str); // $str === 'Total count is 3';
Advertisement
Add Comment
Please, Sign In to add comment