Today, We want to share with you Simple Print PHP Hello World program.
In this post we will show you Simple PHP ‘Hello, World!’ Program, hear for Print Hello World Program in PHP we will give you demo and example for implement.
In this post, we will learn about How to Write a Hello World Program in PHP with an example.
Simple Print PHP Hello World program
There are the Following The simple About Simple Print PHP Hello World program Full Information With Example and source code.
All variables in php start with which symbol
PHP is a Loosely Typed Language as well as PHP has three main different type variable scopes:
There are the Following some Rules to declareing or creating PHP variables Like..
- starts with the $ sign(name of the variable)
- must start with the underscore character or any letter
- PHP declare variable cannot start with a number
- characters alpha-numeric as well as (A-z, 0-9, and _ ) underscores
- PHP variable name case-sensitive
- ($name and $NAME are two different PHP variables)
Creating simple PHP Variables
In PHP server side scripts, a variable symbol starts with the dollar $ sign, followed by the creating name of the PHP variable:
<?php $first_example = "PHP - Hello world!"; $x = 50; $y = 10.5; ?>
Example Hello World Code using Echo
the PHP echo simple statement can take more one or multiple some parameters and print or display userinterface statement takes some only 1 parameter.
<?php echo "Hello, World!"; ?>
Example Hello World Code using Print
<?php print "Hello, World!"; ?>
PHP Hello World Output
simple run this Example localhostphpmyadmin
I hope you get an idea about PHP Programming/Beginning with “Hello World!” Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.
Here are some more FAQ related to this Article: