Update example.php

Added the method - Search for the value by the field and condition