php array split
- by Rahul Mehta
I am passing the space separated value to in input and split this in operation and make an array.
givecard 442 ashutosh2 Y
But i want to pass the message in this string and want to split as complete message in operation or output.
givecard 442 ashutosh2 Y hi how are
you
if i split this line than i get the result is
Array
(
[0] => givecard
[1] => 442
[2] => ashutosh2
[3] => Y
[4] => hi
[5] => how
[6] => are
[7] => you
)
But i want like this
Array
(
[0] => givecard
[1] => 442
[2] => ashutosh2
[3] => Y
[4] => hi how are you
)
as here hi how are you i want to extract as complete one message in a variable .
How can i achieve this