Optimized code for reverse phone Php app (reviewed by Bidesh).