<?php $string = 'abcdef'; if((strlen($string)-1) == strrpos($string,'s')){ echo substr($string, 0, strlen($string)-1); }else{ echo 'nada'; }
You have javascript disabled. You will not be able to edit any code.