95 of 110 menu

PHP String Start

The first character of a string has an index of 0. To get it, simply access it by its index. See the example:

<?php $str = 'text'; echo $str[0]; ?>

Code execution result:

't'
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