Home > Backend Development > PHP Tutorial > Extraction of strings

Extraction of strings

WBOY
Release: 2016-08-04 09:21:30
Original
905 people have browsed it

There is a string:

<code class="php">$content="1+ssdsddss";</code>
Copy after login
Copy after login

Please tell me how to use the php string function to extract "1+", thank you. (Beginners, please answer patiently, thank you)

Reply content:

There is a string:

<code class="php">$content="1+ssdsddss";</code>
Copy after login
Copy after login

Please tell me how to use the php string function to extract "1+", thank you. (Beginners, please answer patiently, thank you)

$str = substr($content,2);

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