Guest User

Untitled

a guest
Mar 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <?php
  2. $myfile = fopen("tests.txt", "r") or die("Unable to open file!");
  3.  
  4. if ($myfile) {
  5. while(!feof($myfile)) {
  6. $s = fgets($myfile);
  7. echo $s{0}.'</br>';
  8. }
  9. }
  10. ?>
  11.  
  12. echo mb_substr($s, 0, 1);
Add Comment
Please, Sign In to add comment