public function searchUsers($query, $page = 0, $count = 0, $entities = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('users', 'search');

		$data['q'] = rawurlencode($query);

		// Check if page is specified.
		if ($page > 0 )
		{
			$data['page'] = $page;
		}

		// Check if per_page is specified
		if ($count > 0)
		{
			$data['count'] = $count;
		}

		// Check if entities is specified.
		if (!is_null($entities))
		{
			$data['include_entities'] = $entities;
		}

		// Set the API path
		$path = '/users/search.json';

		// Send the request.
		return $this->sendRequest($path, 'GET', $data);
	}
public function searchUsers($query, $page = 0, $count = 0, $entities = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('users', 'search');

		$data['q'] = rawurlencode($query);

		// Check if page is specified.
		if ($page > 0 )
		{
			$data['page'] = $page;
		}

		// Check if per_page is specified
		if ($count > 0)
		{
			$data['count'] = $count;
		}

		// Check if entities is specified.
		if (!is_null($entities))
		{
			$data['include_entities'] = $entities;
		}

		// Set the API path
		$path = '/users/search.json';

		// Send the request.
		return $this->sendRequest($path, 'GET', $data);
	}
public function searchUsers ( $ query , $ page = 0 , $ count = 0 , $ entities = null ) { // Check the rate limit for remaining hits $ this -> checkRateLimit ( 'users' , 'search' ) ; $ data [ 'q' ] = rawurlencode ( $ query ) ; // Check if page is specified. if ( $ page > 0 ) { $ data [ 'page' ] = $ page ; } // Check if per_page is specified if ( $ count > 0 ) { $ data [ 'count' ] = $ count ; } // Check if entities is specified. if ( ! is_null ( $ entities ) ) { $ data [ 'include_entities' ] = $ entities ; } // Set the API path $ path = '/users/search.json' ; // Send the request. return $ this -> sendRequest ( $ path , 'GET' , $ data ) ; }
Method used to search for users

@param   string   $query     The search query to run against people search.
@param   integer  $page      Specifies the page of results to retrieve.
@param   integer  $count     The number of people to retrieve. Maximum of 20 allowed per page.
@param   boolean  $entities  When set to either true, t or 1, each tweet will include a node called "entities,". This node offers a
variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags.

@return  array  The decoded JSON response

@since   1.0
@throws  \RuntimeException
Method used to search for users