We have a comparison operator which has a operator ‘===’. Can someone guide, what is evaluated first, the “type” or the value equality?
We have a comparison operator which has a operator ‘===’. Can someone guide, what
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure it’s the Type,
normally when you use the
==operator ,so always the Type will be evaluated first.
EDIT
Referring to artragis answer
below is the full source code of the
is_identical_functionphp 5.4.8 ( thanks to artragis )