LLMS_Form_Validator::sanitize_field_tel( string $posted_value )
Sanitize a telephone field
Parameters Parameters
- $posted_value
-
(string) (Required) User-submitted (dirty) value.
Return Return
(string)
Source Source
File: includes/forms/class-llms-form-validator.php
protected function sanitize_field_tel( $posted_value ) { return preg_replace( '/[^\s\#0-9\-\+\(\)\.]/', '', $posted_value ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |