In PHP, you use the notation ===for testing TRUEor FALSE, other than 1or 0.
For example if FALSE == 0returns TRUE, if FALSE === 0returns FALSE. Therefore, when performing string searches in database 0, if the position of the substring in the question of law is at the beginning, you get 0which PHP can distinguish from FALSE.
Is there a way to do this in Python?
source
share