Use strict equality comparison when comparing ints

This isn't a bug, per se, but bring strict is "the right way" and important to get right in a code example here.
This commit is contained in:
Dave Hulbert
2015-01-06 08:34:05 +00:00
parent ced2fd6d48
commit 0a852e293d

View File

@@ -26,7 +26,7 @@ Let's write a simple "Hello, $name" CLI program. To try it out, create a file na
{% highlight php %}
<?php
if ($argc != 2) {
if ($argc !== 2) {
echo "Usage: php hello.php [name].\n";
exit(1);
}