esedic
2/18/2016 - 10:50 AM

Convert string to camelcase format with utf8 support

Convert string to camelcase format with utf8 support

<?php 
	header('Content-Type: text/html; charset=utf-8');
	$str = 'ČEdoMir ČaDEŠ';
	$name = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
  echo $name; // outputs Čedomir Čadeš
?>