Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
99 of 110 menu
◀ ▶

PHP Substring in a String

To get a substring in a string, use the substr function. See the example:

<?php $arr = substr('abcdef', 1, 3); echo $arr; ?>

Code execution result:

'bcd'

See Also

  • the substr function,
    which cuts out a part of a substring
← →
↑
English▼
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline