[b]How the break data in Array..?? [/b]
i have some data in an Array but i want only a particular part of it..!!
how can i get it..
for Example...
Array
(
[0] => status=1&messages=xxxxxxxxx&credit=23.4;
)
i just want to get status = 1
how can i get it..?? help me out...!! :(
nish123
Junior Poster in Training
83 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
You can use a combination of the substr and strpos functions to achieve this.
darkagn
Veteran Poster
1,197 posts since Aug 2007
Reputation Points: 404
Solved Threads: 200
i thnk explode convert string into array..!!
.
.
but here value itself an array.... does it work.?
nish123
Junior Poster in Training
83 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
Okay i have tested... its working pretty fine with explode..!!!!
.
.
.
thnx maan..!!! :)
$arr = explode("&",$lines[0]);
print_r($arr[0]);
nish123
Junior Poster in Training
83 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0