Print is also a language construct and is used to print expressions to the console. It is slower than echo and has a return type. Here’s the syntax
print(string $expression): int |
---|
The print statement returns 1 and takes only one argument. The parenthesis is optional in the syntax.
Source
https://www.php.net/manual/en/function.print.php
xxxxxxxxxx
<?php
//Prints Welcome to Algodaily!!
print("Welcome to Algodaily!!");
?>
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment