Hi,
I don’t remember reading in any php tutorial that we should not use quotes around numbers.
I am reading codeacademy.com now and it says:
Remember: no quotes around numbers!
**<?php $myName = "Eric";**
** $myAge = 26; ?>**
But the followings work with both types of quotes:
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<!-- Write your PHP code below!-->
<p>
<?php $myAge = '16';
echo $myAge;
?>
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<!-- Write your PHP code below!-->
<p>
<?php $myAge = "16";
echo $myAge;
?>
</p>
</body>
</html>