Jump to content

[SOLVED] print_r help please


Dreadweave

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.