title: PHP equivalent of list and explode in javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1954426/javascript-equivalent-of-phps-list">Javascript equivalent of PHP’s list()</a>  </p>
  </blockquote>
  
  
  
  <p>I want an equivalent of this line but in JavaScript :</p>
  
  <pre><code>&lt;?php list($Id, $Iduser, $Idmany) = explode("," , $IdALL); ?&gt;
  </code></pre>
  
  <p>Where :</p>
  
  <pre><code>$IdALL = '1, 2, 3';
  </code></pre>
  
  <p>Is there any way to do that with JavaScript and that could be supported on all modern browsers ?</p>