phpretard Posted May 12, 2008 Share Posted May 12, 2008 I am new to arrays but I have managed to develope a way to make this one. My problem is how to serialize all of it into one big bowl of serial. I do know this $myArray=serialize(WHAT GOES HERE?); //Specifically for this array Array ( [myusername] => Administrator [invoice_items] => Array ( [0] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => [Quantity] => 100 [item] => Envelopes [Description] => ) [1] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => 175.98 [Quantity] => 100 [item] => Letterhead [Description] => ) [2] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => 226.97 [Quantity] => 100 [item] => Tri-Fold-Brochure [Description] => Full Color | Front And Back ) [3] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => 115.98 [Quantity] => 100 [item] => Rack-Cards [Description] => ) [4] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => 74.94 [Quantity] => 420 [item] => Return-Labels [Description] => ) [5] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => 74.94 [Quantity] => 420 [item] => Return-Labels [Description] => ) [6] => Array ( [COName] => ENS Metals and Jewelry, Inc. [Cnumber] => 156882 [Price] => 135.98 [Quantity] => 100 [item] => Flat-Invitation [Description] => ) ) [invoice_number] => 478849 ) I sure hope someone can help with this. Link to comment https://forums.phpfreaks.com/topic/105340-serialize-help/ Share on other sites More sharing options...
Barand Posted May 12, 2008 Share Posted May 12, 2008 If the array you posted is $myArray, $myStr = serialize($myArray); Link to comment https://forums.phpfreaks.com/topic/105340-serialize-help/#findComment-539538 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.