How to make ucwords work for single quotes only and not apostrophes?
<p>I want to turn this text:</p>

<blockquote>
  <p>She's saying it's time to 'find a solution'.</p>
</blockquote>

<p>into this text:</p>

<blockquote>
  <p>She's Saying It's Time To 'Find A Solution'.</p>
</blockquote>

<p>I'm currently using both ucwords and this ucwords-related function to make capital letters after single quotes: (I found in the <a href="http://php.net/manual/en/function.ucwords.php" rel="nofollow">comment section</a> of php.net.)</p>

<pre><code>function ucwordsMore ($str) {
    $str = str_replace("' ","'",ucwords(str_replace("'","' ",$str)));
    return $str;
}
</code></pre>

<p>However, this function results in this:</p>

<blockquote>
  <p>She'S Saying It'S Time To 'Find A Solution'.</p>
</blockquote>

<p>How can I best keep <strong>letters after apostrophes small</strong>, and <strong>letters after single quotes big</strong>?</p>
