php

What is PHP and PHP Variables?

A)—>PHP is used to develop Web Applications. —>It is open source scripting language. —>PHP is an object-oriented language. PHP Variables ————- —>A variable is a temporary storage that is used to store data temporarily. —>In PHP, a variable is declared using $ sign followed by variable name.

Syntax:
-------
       <?php  
       $str="hello string";  
       $x=200;  
       $y=44.6;  
       echo "string is: $str <br/>";  
       echo "integer is: $x <br/>";  
       echo "float is: $y <br/>";  
       ?> 

Leave a comment

Your email address will not be published. Required fields are marked *