<?php $var = 'TE ST'; $result = substr($var, 0, 3); $result = trim($result); $result = strtolower($result); echo $result;
You have javascript disabled. You will not be able to edit any code.