<?php
$arr=array("ricky ponting","stephen fleming");
echo $arr[0]."</br>";
echo $arr[1]."</br>";
//Output is: ricky ponting;
// stephen fleming;
function swapp($arr)
{
//Please provide code.????
return $temp;
}
echo "After Swapp".swapp($arr)."</br>";
echo $arr[0]."</br>";
echo $arr[1]."</br>";
//Output is: ricky fleming ;
// stephen ponting;
?>
Share Your Answers