How to remove first letter from a string using php - substr()


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $my_text = '12345678';
  4.  
  5. echo substr($my_text, 1); // 2345678
  6.  
  7. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.