![]() |
PHP5 Fill an array with test data.
Hi Everyone,
Need some help to create an array of values ranging from "a" to "zzzzz" but have no idea where to start or look for guidance on this . Ideally multidimensional array under 1 letter, 2 letters, 3 letters, 4 letters and finally 5 letters. Can someone point me in the right direction ? Thanks in advance. |
can be solved using loops
If I understand you correctly, this should work fine..
PHP Code:
which outputs Code:
Array |
or you can use this method -> http://php.net/manual/en/function.array-fill.php
|
I know I'm a bit late, but I like this function to display arrays:
Code:
function displayArray($aArray) |
| All times are GMT +2. The time now is 06:53. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.