Db unescape string: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "{{smcfunc |function=db_unescape_string |usage=$smcFunc['db_unescape_string'] (cleaned_string) |description=Unescapes a string. The opposite of db_escape_string. |parameters=...")
 
No edit summary
Line 13: Line 13:


<noinclude>
<noinclude>
[[Category:Database Functions]]
[[Category:Database Functions]]</noinclude>
[[Category:2.0]]
[[Category:Customizing SMF]]
[[Category:Developing SMF]]</noinclude>

Revision as of 21:53, 8 October 2012

Usage:

$smcFunc['db_unescape_string'] (cleaned_string)


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);



Advertisement: