Jump to content

Serialize Help


phpretard

Recommended Posts

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

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.