Hi
Just a little problem. How do I combine an array of filenames with an array of numbers?
That is,
$filenames =array("file1", .........);
$numbers = array("23",..............);
Any help will be appreciated.
Thanks.
Do you mean merge them, or something else?
An array may contain values of different types, so array_merge() should work.
Both your arrays use string values though, since "23" is a string too (unlike 23 without quotes).
If you want the array in the exact order as your sample, then I think you need to write your own function. array_merge() will work if you don't mind appending the 2nd array to the end of the 1st array.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)