<?php
$var = 'Bob'; //Note: Var all in small letters
$vAr =28; //Note: vAr, A is capitalized
$Var = 'Joe'; //Note: V is capital in var
echo "$var, $Var, $vAr"; // outputs "Bob, Joe ,28"
$4site = 'not yet'; // invalid; starts with a number
$_4site = 'not yet'; // valid; starts with an underscore
$täyte = 'mansikka'; // valid; 'ä' is (Extended) ASCII 228.
?>
Explanation:
This program shows the case-sensitivity of PHP variables.
In the above Example $var $vAr $Var are different
No comments:
Post a Comment