You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
282 B

27 years ago
  1. <?
  2. $foo = array(7,"foo",3,array(1,2),4);
  3. //print $foo[1];
  4. for ($i=0; $i<3; $i++):
  5. foreach($a, $foo ) {
  6. if (gettype($a)=="array") {
  7. print "Array:\n";
  8. foreach($b, $a) {
  9. print "\t$b\n";
  10. }
  11. print "End of array.\n";
  12. } else {
  13. print "$a\n";
  14. }
  15. // print "$a\n";
  16. }
  17. endfor;