Last Updated: February 25, 2016
·
486
· jmtucu

Get a character easily with PHP

<?php
$my_string = 'Hello, World!';

// First letter
echo $my_string{0};

// Second letter
echo $my_string{1};