<?php $str = 'Get Word'; $arr = explode(" ", $str); foreach($arr as $word){ $newstr .= strtoupper(substr($word, 0, 2)); } echo $newstr;
You have javascript disabled. You will not be able to edit any code.