<?php
$a =20;
$b =10;
echo $a . $b;
swap(&$a, &$b,$a,$b); // passing addess and value of the $a,$b
echo "<br>".$a . $b;
function swap($a_ptr,$b_ptr,$a,$b){
$a_ptr = $b;
$b_ptr = $a;
}
Sunday, April 27, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment