hi
just got another problem here that i can not seem to fiqure out
i have a for loop that returns xxx(1,3, 5 or whatever) amount of elemtents
after these elements are returned in the for loop, how can i turn all these elements combined into a single varible to be called later in my script
heres a code snippet
Parse stock quotes info from post array
$post = parse_array($post_array, $open_tag="<td", $close_tag="</td>");
for($xx=0; $xx<count($post); $xx++)
{ $body[$xx] = return_between($post[$xx], "<!-- data -->", "<!-- / data -->", $type=EXCL); }Echo data to validate the download and parse
for($xx=0; $xx<count($body); $xx++)
echo substr($body[$xx], 34, -5);
the echo substr($body[$xx], 34, -5); , could return one element or it could return 10 or 20
ie , if it returns one time there only 1 element, if it returns 6 times there six elements
how can i then make all these elements become one varibable , like
$stockdata=$body[$xx];
that does not seem to work as listed above, placed directly under the above code snippet, should there be numbers added to $body element, like $body[1][$xx] or similar, i just need to get all returned elements in the loop returned together into a single varible i can use later in my script, after the for loop has run
thanks again for looking, any help with this whould be very helpfull, this one has me stumpped again, thanks in advance