uppercase surname with apostrophe in php
<p>I want to ensure all surnames are uppercased, so in php I use:  </p>

<pre><code>$surname = ucfirst(strtolower($dataField));
</code></pre>

<p>How do I ensure that any names such as O'Brien, don't result in O'brien</p>
