mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-12 00:33:58 +02:00
Merge pull request #521 from dave1010/patch-2
Use strict equality comparison when comparing ints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user