The First Character of a String in PHP
Ready example of getting the first character of a string:
<?php
$str = 'text';
echo $str[0];
?>
Code execution result:
't'
Ready example of getting the first character of a string:
<?php
$str = 'text';
echo $str[0];
?>
Code execution result:
't'