$sentence) { $new_string .= ($key & 1) == 0? ucwords(mb_strtolower(trim($sentence))) : $sentence.' '; } } return trim($new_string); } ?>