title: php separating words by using regex
body: <p>I have a string and it contains some words that I want to reach, seperators can be any string that consist of <code>,</code>  <code>;</code> or a space.</p>
  
  <p>Here is a example:</p>
  
  <pre><code>;,osman,ali;, mehmet ;ahmet,ayse; ,
  </code></pre>
  
  <p>I need to take words <code>osman</code> <code>ali</code> <code>mehmet</code> <code>ahmet</code> and <code>ayse</code> to an array or any type that I can use them one by one. I tried it by using preg function but i couldn't figure out. </p>
  
  <p>If anyone help, I will be appreciative.</p>