0

How to variable declare in php

Posted December 26th, 2009 in PHP Tutorial and tagged , , , , , by Paran

PHP variable declaration is very easy from other language. In PHP all variables begin with the symbol $. It is not necessary to the begin in define variable.
There are no variable types in php. It can automatically detect when you declare any variable.
Oh! I forgot to tell you how can start php coding.Its very simple tag, first you write ‘<?php’ and end with  ‘?>’ . Between starting and ending tag you will declare your variable.

Example:

<?php

$a = 1;
$b = 3.34;
$c = “Hello World”;
echo $a,”<”,$b,”",$c;
?>

Here ‘echo’ use for see output. So, don’t worry now you can start your coding.

VN:F [1.9.10_1130]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.10_1130]
Rating: 0 (from 0 votes)
Share and Enjoy:
  • Facebook
  • Twitter
  • Google Bookmarks
  • Print
  • Live
  • Digg
  • Sphinn
  • Mixx
  • Add to favorites

Leave a Reply





  • Page 1 of 1
  • « Previous
  • 1
  • Next »