In this tutorial we are going to discuss about output statements in PHP. In C Programming language the output statement is printf, In C++ Programming language the output statement is cout <<. Like the same in PHP Programming language, the output printing statement is echo. Totally there are two methods to print output in PHP.
Two output statements in PHP are..
Output:
Syntax:
Output:
Two output statements in PHP are..
- Echo
Echo:
Used for printing one and more lines in output
Syntax:
Output:
Hello World!
1st string 2nd string 3rd string
1st string 2nd string 3rd string
Print:
Used for printing one line.. We suggest to use echo statement to print output in php.
Output:
Hello World!
No comments:
Post a Comment