Skip to content

Instantly share code, notes, and snippets.

@Emmathem
Created December 1, 2017 17:02
Show Gist options
  • Save Emmathem/6617b6847bee62b3e2a00bbd06a602a5 to your computer and use it in GitHub Desktop.
Save Emmathem/6617b6847bee62b3e2a00bbd06a602a5 to your computer and use it in GitHub Desktop.
DIFFERENCE BETWEEN ECHO AND PRINT
Both ECHO and PRINT in PHP are used to output result
ECHO does not return a value, and can take many parameters(depending on PHP -v);
PRINT return value of 1 that why it's suitable to use while outputing an expression, it can only accept one argument
@Emmathem
Copy link
Author

Emmathem commented Dec 1, 2017

solution 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment