Function __global->_get_quoted_substrings

Definitions

sources/database_security_filter.php

  • Find the quoted substrings within a query.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$string string No No required parameter N/A N/A The query
$recurse boolean No No False N/A N/A Whether to recurse (for double escaping)

Returns

  • List of substrings (inverse map)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the quoted substrings within a query.
 *
 * @param  string $string The query
 * @param  boolean $recurse Whether to recurse (for double escaping)
 * @return array List of substrings (inverse map)
 */

function _get_quoted_substrings(string $string, bool $recurse = false) : array