Function __global->_sanitise_error_msg

Definitions

sources/global3.php

  • Strip privileged data from an error message.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$text string No No required parameter N/A N/A The error message

Returns

  • Sanitised error message
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Strip privileged data from an error message.
 *
 * @param  string $text The error message
 * @return string Sanitised error message
 */

function _sanitise_error_msg(string $text) : string