php array split
Posted
by
Rahul Mehta
on Stack Overflow
See other posts from Stack Overflow
or by Rahul Mehta
Published on 2010-12-27T07:34:11Z
Indexed on
2010/12/27
7:53 UTC
Read the original article
Hit count: 226
- 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
© Stack Overflow or respective owner