Do You Know How to Write Hello World Program with PHP - Coding Cyber

Do You Know How to Write Hello World Program with PHP

In this step, we will learn how to display text with PHP. With echo statement, you can display the text in the browser. You can use echo with text, numbers, and variables.

Other Articles in PHP Basics Section

Quickly Navigate to Other Sections in PHP Tutorials

PHP Basics
PHP Data Types
PHP Advanced Data Types
PHP Logical Statements
PHP Operators
PHP Loops
User Defined Functions in PHP
Useful PHP Functions

Here is the simple statement to display this text.

This statement should be added only to PHP file

We can use echo statement to display numbers also

If the statements are in separate PHP blocks, no need to add the semicolon at end of each statement. If it’s in the same PHP block you should add the semicolon at end of each statement.

You can see the code below

Related Posts
No related posts for this content
Vivek Vengala
 

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: