title: how to explode string into double quote and separate by comma php?
body: <p>I want to run multi url at the same time, but I don't want to copy and paste it again and again into an array. I want to put it all as a string and explode it in to double quote with comma just like we write in an array.</p>
  
  <p>I want from this</p>
  
  <pre><code>$urls = "
      http://
      http://
      http://
      http://";
  </code></pre>
  
  <p>Into this</p>
  
  <pre><code>$urls = array("http://","http://","http://","http://");
  </code></pre>
  
  <p>This is what I have done so far</p>
  
  <pre><code>    &lt;?php
      $urls = "
          http://
          http://
          http://";
       $url = preg_match_all('/"(?:\\\\.|[^\\\\"])*"|\S+/', $urls, $matches);
      foreach($url as $ul){
          echo $ul[1];
      }
  ?&gt;
  </code></pre>