title: PHP read everything until first comma
body: <p>I have string that will look like this:  </p>
  
  <pre><code>$string = "hello, my, name, is, az";  
  </code></pre>
  
  <p>Now I just wanna echo whatever is there before first comma. I have been using following:  </p>
  
  <pre><code>echo strstr($this-&gt;tags, ',', true);
  </code></pre>
  
  <p>and It has been working great, but the problem it only works php 5.3.0 and above. I am currently on PHP 5.2.</p>
  
  <p>I know this could be achieve through regular express by pregmatch but I suck at RE.</p>
  
  <p>Can someone help me with this.</p>
  
  <p>Regards,</p>