Jump to content

[SOLVED] reset unordered array to ordered array


jagoan-neon

Recommended Posts

Hi all,

 

Need help to order an array

The result when I print the array is like this :

 

Array

(

    [ 0 ] => Array

        (

            [ 2 ] => 0

            [ 3 ] => 0

        )

)

 

Array

(

    [ 0 ] => Array

        (

            [ 2 ] => +62817566325

            [ 3 ] => +628155212557

        )

)

 

How to make the array in order like this

Array

(

    [ 0 ] => Array

        (

          [ 0 ] => 0

          [ 1 ] => 0

        )

)

 

Array

(

    [ 0 ] => Array

        (

            [ 0 ] => +62817566325

            [ 1 ] => +628155212557

        )

)

 

What is the function to make array in order ?

Thank you and sorry for my English

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.