hi brothers
Let say i have array names
$names['john'];
$names['joey'];
$names['joe'];
$names['joel'];
$names['joseph'];
I want to fill these array names above with fruit names,
$fruit['banana'];
$fruit['apple'];
$fruit['grape'];
$fruit['guava'];
$fruit['strawberry'];
so for example,
$names['john'] = $fruit['banana'];
$names['john'] = $fruit['apple'];
$names['john'] = $fruit['grape'];
$names['john'] = $fruit['guava'];
$names['john'] = $fruit['strawberry'];
$names['joey'] = $fruit['banana'];
$names['joey'] = $fruit['apple'];
$names['joey'] = $fruit['grape'];
$names['joey'] = $fruit['guava'];
$names['joey'] = $fruit['strawberry'];
and soon...
but i want this to be automatic using loops (for or foreach).
Can you show me please...
Thank you...








Bookmarks