title: Explode is undefined . how to split a string in php codeigniter
body: <p>I have to split a string and store it in another variable. i am getting the "EXPLODE IS NOT DEFINED".someone please help me. thanks in advance.</p>
  
  <pre><code>           var DocRefNo=document.getElementById('DocRefNo').value;
             $Doc=explode('No',$DocRefNo);
             alert($Doc)
  </code></pre>