if(count($arr1) === count($arr2) === 26)
In the above line it is throwing error
syntax error, unexpected '==='
Why can't i compare the value returned by count() with 26
if(count($arr1) === count($arr2) === 26)
In the above line it is throwing error
syntax error, unexpected '==='
Why can't i compare the value returned by count() with 26
You can but you have to do it separately:
if(count($arr1) === 26 && count($arr2) === 26)
If count($arr2)
is 26
if(count($arr1) === count($arr2) === 26)
evaluates to
if(count($arr1) === True)
which would then fail.
You need to perform two logic checks and check they both evaluate to true