Skip to content

Commit

Permalink
Fixed a typo
Browse files Browse the repository at this point in the history
But I think the answer is controversial because strcmp is binary safe to compare strings, but it's not even a valid comparison method to compare generic variables (and in the question says "two variables") as it is noticed in http://php.net/manual/es/function.strcmp.php#108563.
  • Loading branch information
rodrigobb authored Oct 19, 2016
1 parent aa79557 commit c56c496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/questions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ questions:
- {value: 'preg_replace', correct: false}
- {value: 'preg_strip', correct: false}
-
question: 'Identify the best approach to compare to variables in a binary-safe fashion'
question: 'Identify the best approach to compare two variables in a binary-safe fashion'
answers:
- {value: 'Both strcmp() and $a === $b', correct: true}
- {value: '$a == $b', correct: false}
Expand Down

0 comments on commit c56c496

Please sign in to comment.