Back to Developer Roadmap

echo

src/data/roadmaps/php/content/[email protected]

4.0548 B
Original Source

echo

'echo' is a language construct in PHP, and it is commonly used to output one or more strings to the browser. This command doesn't behave like a function, hence it doesn't require parentheses unless it's necessary to avoid confusion. It's also worth mentioning that 'echo' also supports multiple parameters. Check out a simple example below where we are using echo to output a simple string:

echo "Hello, world!";

Visit the following resources to learn more: