Is there any way to print out the entire contents of an array? for example,
$names = array("bob","linda","tom","joe"); print $names //?????
i would like for it to print "bob linda tom joe"
any help would be great..
thanks again, Ben
If you don't want to loop through the array, you can just
echo join(" ",$names);
The first parameter is placed between the elements of the array.
The (last I checked) undocumented function print_r(any) will do a human readable variable dump.