1
[Project 123] => Array
    (
        [2014-12-01] => 13
        [Total] => 373
        [2014-12-02] => 12
        [2014-12-03] => 12
        [2014-12-04] => 12
        [2014-12-05] => 12
        [2014-12-06] => 12
        [2014-12-07] => 12
        [2014-12-08] => 12
        [2014-12-09] => 12
        [2014-12-10] => 12
        [2014-12-11] => 12
        [2014-12-12] => 12
        [2014-12-13] => 12
        [2014-12-14] => 12
        [2014-12-15] => 12
        [2014-12-16] => 12
        [2014-12-17] => 12
        [2014-12-18] => 12
        [2014-12-19] => 12
        [2014-12-20] => 12
        [2014-12-21] => 12
        [2014-12-22] => 12
        [2014-12-23] => 12
        [2014-12-24] => 12
        [2014-12-25] => 12
        [2014-12-26] => 12
        [2014-12-27] => 12
        [2014-12-28] => 12
        [2014-12-29] => 12
        [2014-12-30] => 12
        [2014-12-31] => 12
    )

As you can see the array in top. There is a field 373 with the key Total,

i want to move it to the end of the array without changing its key Total or its value 373.?? Is it possible to do That.??

2
  • 1
    try to use ksort to sort the array based on keys.php.net/manual/en/ref.array.php Commented Dec 14, 2014 at 10:10
  • unset it and add once again Commented Dec 14, 2014 at 10:10

1 Answer 1

1

You can use ksort() on the parent array:

ksort($array['Project 123']);
Sign up to request clarification or add additional context in comments.

1 Comment

@SizzlingCode sure man no probl

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.