Page 1 of 1
How do I get a string out of this array?
Posted: Wed Dec 19, 2007 7:42 pm
by ianhull
Hi Guys I have an array called flashString[]
How would I get it formatted like this
Thanks in advance
Posted: Wed Dec 19, 2007 7:51 pm
by John Cartwright
I'm not sure what you mean.. maybe implode()?
Posted: Wed Dec 19, 2007 7:51 pm
by Jonah Bron
$myString = implode('', $myString);//implode all parts of array, each value seperated by nothing
Posted: Wed Dec 19, 2007 7:53 pm
by ianhull
Hi Jcart, I'm not too sure,
My string looks like this
Code: Select all
&flashString=Judgement Day was defeated by Death RoWs Elite at Gears of War MLG Ladder on 2007-12-16 18:31:12 - ,&flashString=test was defeated by Team Serv at Gears of War MLG Ladder on 2007-12-09 22:28:31 - ,
My array looks like this
Code: Select all
$flashString[0] = 'Judgement Day was defeated by Death RoWs Elite at Gears of War MLG Ladder on 2007-12-16 18:31:12 - ,';
$flashString[1] = '&flashString=test was defeated by Team Serv at Gears of War MLG Ladder on 2007-12-09 22:28:31 - ,';
Just cant get my head around this one
Posted: Wed Dec 19, 2007 7:58 pm
by John Cartwright
Can you explain exactly what you are trying to do? Your last post didn't really tell me anything, unfortunately. From what I can tell you've got an array and simply want to output the values? or you are having dificulties parsing the url into an array of values?
Try and explain it in plain English first, then use code examples to highlight the explanation.
Posted: Wed Dec 19, 2007 8:00 pm
by ianhull
Thanks,
works a treat
