Hi, I am leaning php and have created a basic form to learn some of the functions and use of variables. I have found an instance that I'd like to utilize an array for random output. I'm reasonably sure my coding is correct, but there is something amiss some place. When I tell it to print $p3Array the only out put I get is array, instead of one of the choices in the array. When I use the print_r function it lists everything in the array. If someone could point me in the right direction I would REALLY appreciate it! Here is the code:
$p3Array = array(
'1' => 'Dinner tonight is Steak!!',
'2' => 'Dinner tonight is left over refried bans! UHG!!',
'3' => 'No dinner tonight, last nights dinner killed us!');
print "$p3Array";
The output for me is simply the word array