Jump to content

User:Dwitijoshi

From Wikipedia, the free encyclopedia

<!DOCTYPE html> <html lang=ën"> <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 ="Dwiti";

echo "$name
"; echo "This is more on php";

//below type of variable give error