Home >Backend Development >PHP Tutorial >Extraction of strings

Extraction of strings

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-08-04 09:21:30939browse

There is a string:

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

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>

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);

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