User:Komalmenariacpm
Appearance
<!DOCTYPE html> <html lang="en"> <head>
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tutorial 6 on php variables</title>
</head> <body>
More on php variables
Rules for creating variables in php
- Start with $ sign
- Cannot start with numbers
- must Start with letter or an underscore character
- Can only contain alphanumeric character and underscore
- variables in php are case sensitive like ($name,$Name,$NAME they are different variables)
<?php $name ="komal";
echo "$name
";
echo "This is more on php";
// below type of variable give error // $name% ="komal"; // echo "$name%"; ?>
</body> </html>