- var_dump: documentation ( source)
- preg_replace_callback: documentation ( source)
- ucwords: documentation ( source)
- strtoupper: documentation ( source)
<?php
$string = "british telecom (uk) limited";
$result = preg_replace_callback('/\([a-z]\)/i', function($matches)
{
return strtoupper($matches[0]);
}, ucwords($string));
var_dump($result);