Echo in PHP

Reference with some background information on PHP Echo.

Echo is a language construct of PHP, and is used to output Data to the Browser.

Example

Below example outputs the content of a variable, called $str.

$str = '<p>Welcome to Brugbart!</p>';
echo $str;

Would output Welcome to Brugbart! in a paragraph.

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.