Function __global->get_function_hash

Definitions

sources/override_api.php

  • Find the MD5 hash of the space-stripped copy of function within the given code.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$code string No No required parameter N/A N/A The code
$function string No No required parameter N/A N/A Name of the function

Returns

  • The MD5 hash (blank: no such function)
  • Type: SHORT_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the MD5 hash of the space-stripped copy of function within the given code.
 *
 * @param  string $code The code
 * @param  string $function Name of the function
 * @return SHORT_TEXT The MD5 hash (blank: no such function)
 */

function get_function_hash(string $code, string $function) : string