Page 1 of 1

Help with array

Posted: Thu Jan 15, 2009 12:30 am
by NEWDAY
There are 2 list first a list containing names of females e.g. (sara, amanda,anna etc..)
also a list containing names of males ( nolan, chris,steven etc...)

I want to use php to make all possible mixtures of 2 names like (sara nolan, sara steven,amanda chris, anna steven etc...) put in mind that the first name has to be a female and the second a male, is it possible?

Re: Help with array

Posted: Thu Jan 15, 2009 1:27 am
by requinix
Put one foreach inside another. Doesn't matter which does the males and which does the females.