Aera223

Recent messages from file

Sep 30th, 2020 (edited)
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2. //Replace the array with a file();
  3. $ar = ['a','b','c','d','e','f','g','h'];
  4. $ar = array_reverse($ar,true);
  5. echo count($ar);
  6. for($i=0;$i<5;$i++){echo $ar[4-$i];}
  7. ?>
Add Comment
Please, Sign In to add comment