asadlive84

Untitled

Nov 5th, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2. $a;$b;$temp;
  3. $ara=array(10,20,30,40,50,60,70,80,90,100);
  4.  
  5.  
  6.  
  7. for($a=0,$b=9;$a<10;$a++,$b--)
  8. {
  9.     $temp=$ara[$b];
  10.     $ara[$b]=$ara[$a];
  11.    
  12.     print_r($ara[$b]."\n");
  13.    
  14. }
Advertisement
Add Comment
Please, Sign In to add comment