Optimized code for find person Php app (reviewed by Bidesh).