- variable is used for storeing information
- All variables in PHP are denoted with a leading dollar sign ($)
- PHP does a good job of automatically converting types from one to another when necessary.
Code:
<html>
<head>
<title>About php Variables</title>
</head>
<body>
<?php
$a = "hello";
$hello = "Hello everyone.";
echo $a ."<br />";
echo $hello."<br />";
echo $$a."<br />";
?>
</body>
</html>
No comments:
Post a Comment