Home > Backend Development > PHP Problem > How to remove initial letters in php

How to remove initial letters in php

藏色散人
Release: 2023-03-08 19:06:01
Original
2171 people have browsed it

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;
?>
Copy after login

Output result:

bout us
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template