Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/func/str_clear.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>XPM3_FUNC::str_clear()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
XPM3_FUNC :: <i>string</i> <b>str_clear</b> ( <i>string</i> value [, <i>array</i> additional ] )
<hr>
By default replace white spaces "\r", "\n" and tab "\t" with an empty string.

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
$test = "XP\nert.\tMailer\r 2.";

// clear string from white spaces and additional space and dot
echo XPM3_FUNC::str_clear($test, array(' ', '.'));
</code></pre>
</td></tr>
</table>

<hr color="white">

[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_FUNC str_clear">Comments</a> ]

Last update: Tuesday, January 16, 2007

</pre>

</body>
</html>
Return current item: EXtensible Production Suite (XPS)