<?php $string = 'string'; echo $string[-1] . PHP_EOL; echo substr($string, -1, 1) . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.