string compare int value trap in php