echoing variables

PHP Echo

The echo command in PHP is used to output the text in the web browser. And echo is not a function, but it is a language construct. Meaning you don’t need to use a parenthesis with it. Outputting a string In outputting a string in PHP, we use echo. We place a string variable or we can use quotes, like what we are going to do in this example. The code below we output a “Hello everyone!”.