function basharflerbuyuk($str)
{
  $str = explode(' ', $str);

  $str_new = '';

  foreach($str as $s)
  {
    $str_new .= strtoupper($s[0]);
    $str_new .= strtolower(substr($s, 1));
    $str_new .= ' ';
  }
  return $str_new;
}
Denedim, çalışıyor. Bekchi'nin de dediği gibi ücreti Mehmetçik Vakfı'na bağışlayabilirsiniz.