Home > Article > Backend Development > How to remove initial letters in php
php method to remove the initial letter: first create a PHP sample file; then use the "substr($a,1);" method to remove the first letter in the specified word; finally output the deleted content through echo. Can.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
How to remove the initial letter in php?
is very simple, the code is as follows:
<?php $a = "About us"; $a = substr($a,1); echo $a; ?>
Output result:
bout us
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to remove initial letters in php. For more information, please follow other related articles on the PHP Chinese website!