Thread: echo vs. print

    #1
  1. No Profile Picture
    miguelgarcia
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm new to PHP and am curios if there is any functional difference between a "print" and an "echo".
  2. #2
  3. No Profile Picture
    Ulf.Wendel
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi Miguel,

    they're very simmilar. But echo is not a function, it's a language construct. It does not give you a return value. print() does. echo accepts several arguments. print() one.

    Ulf

Similar Threads

  1. permissions after uploading
    By Paul Niessen in forum Perl Programming
    Replies: 3
    Last Post: February 15th, 2004, 06:51 PM
  2. Writing to two *.csv files
    By CAR in forum Perl Programming
    Replies: 4
    Last Post: February 7th, 2004, 05:39 PM
  3. Replies: 2
    Last Post: January 30th, 2004, 10:11 AM
  4. mysql problem with joining tables , complicated!
    By toxical in forum PHP Development
    Replies: 6
    Last Post: January 27th, 2004, 04:43 PM
  5. need help with testing non-alphanumeric input
    By pinkipodmini in forum PHP Development
    Replies: 1
    Last Post: January 23rd, 2004, 02:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo