PDA

View Full Version : no error, but weird



geremyb
09 Mar 2011, 02:24 PM
Hi.. I have started learning PHP only recently. But I stumbled upon a problem i can't understand, and i guess, it's one of the basics.. Probably solution is very simple but still couldn't figure it out...
I got this code:
http://a75e.freephptest.com/

for some reason, it only returns zeros, not the sentence.. any help would be appreciated...

Jason
09 Mar 2011, 04:45 PM
I think I changed it for you. You should have got errors. You don't concatenate strings with +. You use .

echo "<br />".$animals[$x]." is a creature.";