note 68786 deleted from control-structures.for by danbrown
| From: | danbrown@php.net | Date: | Mon, 07 Dec 2009 16:03:58 +0000 |
| Subject: | note 68786 deleted from control-structures.for by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163647@lists.php.net to get a copy of this message | ||
Note Submitter: frank at booksku dot com
----
re: jdtoth:
I'm fairly sure the following gives you exactly the output you're looking for:
$arr = array(12,18,24,36);
foreach($arr as $num)
foreach($arr as $inner_num)
foreach($arr as $last_num)
echo "$num-$inner_num-$last_num\n";