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.

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 blocks, no need add the semicolon at end of each statement. If it’s the same 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: