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