Dreadweave Posted June 8, 2009 Share Posted June 8, 2009 total php newbie here so heres my little question. Currently i have an array called $cart_contents wich holds all the item stock codes of shopping cart items. so obviously print_r($cart_contents) will output something like this : "Array( [0] => item0 [1] => item1 [2] => item2)1" how would i go about getting an output of: "item0item1item2" the reason being so i can send the itemcodes via url to another page withought all the other jargan. -Thanx in advance for any help Link to comment https://forums.phpfreaks.com/topic/161337-solved-print_r-help-please/ Share on other sites More sharing options...
Garethp Posted June 8, 2009 Share Posted June 8, 2009 echo $cart_contents[1] . $cart_contents[2] . $cart_contents[1]; Link to comment https://forums.phpfreaks.com/topic/161337-solved-print_r-help-please/#findComment-851382 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.