title: php array split
body: <ul>
  <li>I am passing the space separated value to in input and split this in operation and make an array.</li>
  </ul>
  
  <blockquote>
    <p>givecard 442 ashutosh2 Y</p>
  </blockquote>
  
  <ul>
  <li>But i want to pass the message in this string and want to split as complete message in operation or output.</li>
  </ul>
  
  <blockquote>
    <p>givecard 442 ashutosh2 Y hi how are
    you</p>
  </blockquote>
  
  <p>if i split this line than i get the result is </p>
  
  <pre><code>Array
  (
      [0] =&gt; givecard
      [1] =&gt; 442
      [2] =&gt; ashutosh2
      [3] =&gt; Y
      [4] =&gt; hi
      [5] =&gt; how
      [6] =&gt; are
      [7] =&gt; you
  )
  </code></pre>
  
  <p>But i want like this </p>
  
  <pre><code> Array
      (
          [0] =&gt; givecard
          [1] =&gt; 442
          [2] =&gt; ashutosh2
          [3] =&gt; Y
          [4] =&gt; hi how are you 
      )
  </code></pre>
  
  <p>as here hi how are you i want to extract as complete one message in a variable .
  How can i achieve this </p>