difference between PRINT, printf and echo?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • isuru
    New Member
    • Oct 2000
    • 12

    difference between PRINT, printf and echo?

    What is the difference between PRINT, printf and echo?

    They are all used to print text on the screen but printf function is way more complicated.

    echo seems to be the simplest to use why would anyone use printf or PRINT
  • JohnM
    Senior Member
    • May 2000
    • 622

    #2
    print / echo, same thing
    printf - print formatted
    like this:
    printf("You registered on %d. You have earned %m",$dateregistered,$moneyearned);
    Not sure if the %m is right, but...

    Comment

    • Jalit
      New Member
      • Sep 2000
      • 26

      #3
      I use echo but I don't know why. I guess becasue it is shorter.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...