<?php $w = array('one' => '1','two'); array_push($w,('three' => 'stuff')); // what is the correct syntax for this? foreach ($w as $item) { print $item . '<br />'; }
?>
<?php $w = array('one' => '1', 'two'); $w['three'] = 'stuff'; foreach ($w as $item) { print $item . '<br />'; } ?>
You may want to read the PHP manual on arrays.