PHP Basics: Echo/Print

Posted by: Admin  :  Category: Php

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

The echo language construct allows you to output data to the browser. Also, a quick word about the print language construct. WEBSITE phpacademy.org FORUM http TWITTER twitter.com FACEBOOK www.facebook.com
Video Rating: 5 / 5

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

15 Responses to “PHP Basics: Echo/Print”

  1. UmeRonaldo Says:

    Hey Would it wont work with out a localhost server? by just making a text file writing the code and then converting it into .php ??

  2. UmeRonaldo Says:

    @Whisperingonthewind Same In My Case

  3. darkmaster539 Says:

    Echo & print are not the exact same. Print has Return Values of 1 well echo returns nothing. It’s just worth noting that, and yes it can be useful if used correctly. I mainly use echo anyway as on my site there is only 1 instance where I need any kind of return from print.

  4. AL7X7 Says:

    Hello, thanks for the series
    I’m a little confused. Here in phpacademy you have a basic series, but at the new boston channel there is also a basic series, that you have created.
    So what do you recommend me? to follow the videos here or in the new boston channel.
    Which one is more complete?
    thanks in advance!

  5. Acceptable76 Says:

    Brown? Last time I checked that was red..

    lool just yanking your string. 🙂

  6. mysite1000 Says:

    u’re the best Alex.. and u’ll alwayz be! i’m alreadyi passed these stages but all thanks to u!

  7. renegade8164 Says:

    For files that contain only PHP code or ending with PHP-code, the closing tag (“?>”) is never permitted and unnecessary. It is not required by PHP, and omitting it´ prevents the accidental injection of trailing white space into the response.

  8. Jozekban Says:

    @phpacademy another reason to use echo.is in fact is shorter…… xD

  9. phpacademy Says:

    @Whisperingonthewind Glad to hear it.

  10. phpacademy Says:

    @lukie254 That’s excellent!

  11. raygun369 Says:

    Awesome videos! thanks!!!!!

  12. Whisperingonthewind Says:

    These are great simple tutorials just what I need to get started.

  13. lukie254 Says:

    I’ve made a lot of scripts in my time, but I’ve never heard of print. Even when watching your basics, I seem to learn something new.

  14. TheOneTemor Says:

    New tuts, yaay!

  15. halogreg8889 Says:

    yey 🙂

Leave a Reply

*