+ 5
What is the function of echo
Php
7 ответов
+ 9
PHP echo Function. In PHP, echo is used to output one or more strings.
+ 6
echo is used to print a string to console
+ 5
Code we must practise and practise
+ 5
Try it out 😉
<?php echo "echo is used to print a string to console (@D_Stark )";
?>
Or look here
https://code.sololearn.com/wpZUbw9AVDC7/?ref=app
+ 2
In PHP, echo is used to print a string, number or variables. It doesn't return anything.
On the other hand, print is used to print same as echo. But it returns 1. So, we can use print in expressions but not echo.
+ 2
Like print and puts in other languages.
+ 1
In PHP we use echo to give an output,
like as print in JS