Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function tester($count, &$str){
- $str = "Total count is $count";
- }
- $count = 0;
- $str = "Total count is $count";
- // $str === 'Total count is 0';
- tester($count, $str); // $str === 'Total count is 1';
- tester($count, $str); // $str === 'Total count is 2';
- tester($count, $str); // $str === 'Total count is 3';
Advertisement
Add Comment
Please, Sign In to add comment