Answered Questions

  • Echo and Print

    What is the difference between "echo" and "print" in PHP?

    seanmullins

    • Jul 14th, 2010

    They are actually both language constructs (printf() is a function)The main difference is that print returns a value, so you could do something other than simply display the string. This makes it a little slower than echo.Unless you need the return value, use echo. Plus, it's easier to type!

  • PHP Session

    Where does the session stored, either client side or server side?

    PRASHANT PRAKASH WADIKAR

    • Mar 8th, 2018

    Session stored on server side

    sagar

    • Jan 6th, 2018

    Session stored on server side and cookies stored on client side.
    session start using session_start(); method and destroy using session_destroy(); method