Re: Re: does array_slice not work on multidimensional arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems clear to me, but do you also agree that my evidence is that
array_slice() does NOT work on multi-dimmed arrays on v.4.3.9?
Here is the evidence:

this:

var_dump($BuildPerUniqueDateArray);
echo"\n\n~~~~~~~~~~~~~\n\n";
array_slice($BuildPerUniqueDateArray, 1, 2);
var_dump($BuildPerUniqueDateArray);

It seems clear to me that you are dumping /the same/
array twice.


Aha. I see now. I had to *assign* the results of the array_slice to a [new] array and then use that ... (trying to do something and expecting the results to "stick" even without assigning them to a var, bites me every week or so. I'll get it through my old habits-from-other-languages skull eventually.)

Thank you Nisse,

-Govinda

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux