VariableInPhp.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>use of variables in php</title> </head> <body> <h2>use of variables in php</h2> <?php /* |--------------------------------------------------------------------------------------------------------- | $ symbol is variable in php | $heading - here heading is a php variable |--------------------------------------------------------------------------------------------------------- */ $heading = "i am assigned to a php variable."; /* |--------------------------------------------------------------------------------------------------------- | the string "i am assigned to a php variable." has assigned to the variable $heading |--------------------------------------------------------------------------------------------------------- */ echo $heading; /* |--------------------------------------------------------------------------------------------------------- | by using echo function we get output here |--------------------------------------------------------------------------------------------------------- */ ?> </body> </html>
use of variables in php - output

No comments:
Post a Comment
leave your comments here..