Is using namespaces to partition a project bad practice?
<p>I have recently learnt about namespaces in PHP, and was wondering, would it be bad practice to do this?</p>

<pre><code>&lt;?php

namespace String; // string helper functions

    function match($string1, $string2)
    {

     $string1 = trim($string1);
     $string2 = trim($string2);

     if (strcasecmp($string1, $string2) == 0) // are equal 
     {
      return true;
     } else {
      return false;
     }
    }


?&gt;
</code></pre>

<p>Before I had this as a static method to a String class, but this always seemed <em>wrong</em> to me... Which is the better alternative? I have a desire to categorise my helper functions, and want to know which is the better way to do it.</p>

<p><strong>Edit</strong>
So how do I then access the match function if I have declared it in a namespace? How do I <em>stop</em> the namespace declaration, say if I include a file beneath it which declared a new namespace, would it automatically stop references to the first? And how do I go about returning to global namespace?</p>
