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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.