Results 1 to 2 of 2

Thread: no error, but weird

  1. #1
    Join Date
    Mar 2011
    Posts
    1

    no error, but weird

    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...

  2. #2
    Join Date
    Mar 2007
    Location
    Werrington, England
    Posts
    1,315
    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.";

Similar Threads

  1. weird spacing
    By Guardian in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 10 Aug 2010, 03:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •