Syntax
PHP Print Output Syntax
In PHP, print output: outputs text — echo "Hello";
Quick Answer
- Syntax
echo "Hello";
PHPSyntax
Print Output
Code example
echo "Hello";
Outputs text.
How to print output in PHP
- Open your PHP file or editor.
- Copy the example, then replace its sample names and values for your code.
PHP Print Output Syntax
Use echo "Hello";.
Related Syntax References
Frequently asked questions
What is the PHP syntax for print output?
Use this pattern: echo "Hello";
Can I copy this PHP code example?
Yes. Use Copy code and adapt the example to your program.
Is this PHP syntax different on Mac or Windows?
No. The language syntax is the same across operating systems.
Official source · How we verify