7 Sep '16

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

Creating Variables in PHP

In this tutorial I will explain how to create php variables. Before creating example program I will give you brief explanation of variables.

Variables in PHP

Variables which stores values, numbers, etc.

In PHP, a variable starts with the $ sign.

Like c program or c++ programmin no need to define variable data types in php.

Now I will create one string variable.
$txt = “Hello world!”;
When you quote double quotes to the text value that becomes string variable.

Now I will create one integer variable.
$number1 = 5;

Now I will create floating point variable.
$number2 = 10.5;

Video demonstration:

 

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply