Home  >  Article  >  Backend Development  >  How to remove initial letters in php

How to remove initial letters in php

藏色散人
藏色散人Original
2021-03-17 11:02:132149browse

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.

How to remove initial letters in php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn