php swapp two name surmane

<?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

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.