Refactor the 'search' example.
Refactor the 'search' example.

splunk/splunk-sdk-php,unikent/splunk-sdk-php,unikent/splunk-sdk-php,unikent/splunk-sdk-php,splunk/splunk-sdk-php,shakeelmohamed/splunk-sdk-php,shakeelmohamed/splunk-sdk-php,shakeelmohamed/splunk-sdk-php,splunk/splunk-sdk-php