Home TechnologyProgrammingPHP Subscribe to RSS

What Is The Difference Between Print() And Echo() In Php?

Answer Question

2 Answers - Sort by: Date | Rating

    1. Echo works faster than print().
    2. Echo and print are language construct.
    3. Print behaves as a function and it returns an integer value.
    4. Echo does not returns any values.
    5. Echo is not suitable for conditional construct
    6. Print is suitable for conditional construct.
    7. Print process is slower than echo .
    1 0

    Aiyyappan  

    answered 2 years ago

      There's no difference.  PHP has several examples of two functions that perform the same operation, really for backwards-compatibility or conveniences sake.  Take your pick!
      0 0

      Madbiker  

      answered 3 years ago

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International