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