title: PHP: Split a string in to an array foreach char
body: <p>I am making a method so your password needs at least one captial and one symbol or number.
  I was thinking of splitting the string in to lose chars and then use preggmatch to count if it contains one capital and symbol/number.</p>
  
  <p>however i did something like this in action script but can't figure out how this is called in php. i cant find a way to put every char of a word in a array.</p>
  
  <p>AS3 example</p>
  
  <pre><code>    for(var i:uint = 0; i &lt; thisWordCode.length -1 ; i++)
  {
      thisWordCodeVerdeeld[i] = thisWordCode.charAt(i);
      //trace (thisWordCodeVerdeeld[i]);
  }
  </code></pre>
  
  <p>Thanks,
  Matthy</p>