On Tue, Jun 14, 2005 at 11:25:52PM -0600, Andrew McNabb wrote:
> I would do this recursively.  My PHP stinks, but something like this:
> 
> function hello($array)
> {
>       foreach ($array as $i => $value) {
>               unset ($array[$i]);
>               print $element . hello($array);
>               $array[$i] = $value;
>       }
> }
> 

Sorry, that should be "print $value . hello($array)".

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

Attachment: pgpZNnfGd5UVl.pgp
Description: PGP signature

.===================================.
| This has been a P.L.U.G. mailing. |
|      Don't Fear the Penguin.      |
|  IRC: #utah at irc.freenode.net   |
`==================================='

Reply via email to