Function __global->_boolean_search_prepare

Definitions

sources/database_search.php

  • Take a search string and find boolean search parameters from it.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$search_query string No No required parameter N/A N/A The search query

Returns

  • Words to search under the boolean operator, words that must be included, words that must not be included
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Take a search string and find boolean search parameters from it.
 *
 * @param  string $search_query The search query
 * @return array Words to search under the boolean operator, words that must be included, words that must not be included
 */

function _boolean_search_prepare(string $search_query) : array