Function strValidCharacters
Check if a string contains only valid characters. Therefore the string is compared with a hard coded list of valid characters for each datatype.
Copyright:
2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Located at
License: GNU General Public License v2.0 only **********************************************************************************************
Located at
Parameters summary
string |
$string |
The string that should be checked. |
string |
$checkType |
<p>The type @b email, @b file, @b noSpecialChar, @b phone or @b url that will be checked. Each type has a different valid character list.</p> |
Return value summary
boolean
|
Returns @b true if all characters of @b string match the internal character list. |