PHP, PHP: Comparison Operators - Manual, Question
Yes you can compare string and integer in PHP  as  internally PHP will cast everything to the integer type, so numbers 100 and 100 will be compared.