PHP character sequence check function
<p>How would I condense this php method to have less code yet still be readable and functional? What would you change in this code?</p>

<pre><code>public function charCount($string, $max, $min) {

    $stringCount = strlen($string);

    if(isset($max) || isset($min)) {
        //Testing Max Chars
        if($stringCount &gt; $max) {
            return 'String length: ' . $stringCount . "&lt;br /&gt;
                    Max Chars: " . $max . "&lt;br /&gt;
                    Error: To Long";


        }
        else if($stringCount &lt; $min) {
            return 'String length: ' . $stringCount . "&lt;br /&gt;
                        Min Chars: " . $max . "&lt;br /&gt;
                        Error: To Short";
        }
        else {
            return true;
        }
    }

    else {
        return true;
    }
}
</code></pre>
