unescapestring__recursive

Description

Unescapes a string or every string in an array.

Syntax

mixed unescapestring__recursive (mixed $var)



Parameter $var

Expected type: Mixed
Description: A string or an array of values to unescape

Allowed types for $var
Allowed values Description
String A potentially escaped string
Array An array of values that might be escaped



Return value

Expected type: Mixed
Description:

Possible types
Allowed values Description
String If the input is a string, returns the unescaped string
Array If the input is an array, returns the array with all values recursively unescaped


Notes

  • Calls $smcFunc['db_unescape_string'] on each string
  • Calls itself recursively if the input is an array
  • Returns an unescaped string or an array of unescaped strings
Advertisement: