ereg_replace

To delete all signs / symbols from a string, you can use the function with special values:

ereg_replace(”[[:punct:]]”,”,$string);

The following is a set of special values that denote certain common ranges. They have the advantage that also take in account the ‘locale’ i.e. any variant of the local language/coding system.

[:digit:] Only the digits 0 to 9
[:alnum:] Any alphanumeric character 0 to 9 OR A to Z or a to z.
[:alpha:] Any alpha character A to Z or a to z.
[:blank:] Space and TAB characters only.
[:xdigit:] .
[:punct:] Punctuation symbols . , ” ‘ ? ! ; :
[:print:] Any printable character.
[:space:] Any space characters.
[:graph:] .
[:upper:] Any alpha character A to Z.
[:lower:] Any alpha character a to z.
[:cntrl:]

Tags: Computer Networking System, Css Designer Only Web, Common Css Ygautos Ysm