No edit summary |
m (refresh SMW properties) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{smcfunc | {{smcfunc | ||
|function=db_unescape_string | |function=db_unescape_string | ||
|internal=true | |||
|usage=$smcFunc['db_unescape_string'] (cleaned_string) | |usage=$smcFunc['db_unescape_string'] (cleaned_string) | ||
|description=Unescapes a string. The opposite of [[db_escape_string]]. | |description=Unescapes a string. The opposite of [[db_escape_string]]. | ||
Line 11: | Line 12: | ||
$new_var[$smcFunc['db_unescape_string']($k)] = unescapestring__recursive($v);</nowiki> | $new_var[$smcFunc['db_unescape_string']($k)] = unescapestring__recursive($v);</nowiki> | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
[[Category:Database Functions]]</noinclude> | [[Category:Database Functions]]</noinclude> |
Latest revision as of 16:43, 11 October 2012
Usage:
$smcFunc['db_unescape_string'] (cleaned_string)
This function should never be used outside the database abstraction layer (Db-*.php or Subs-Db-*.php files) |
Description: Unescapes a string. The opposite of db_escape_string.
Parameters:
- cleaned_string the string to be unescaped.
Return: The unescaped string.
Example:
// Strip the slashes from every element. foreach ($var as $k => $v) $new_var[$smcFunc['db_unescape_string']($k)] = unescapestring__recursive($v);