Tutorials References Exercises Videos Menu
Free Website Get Certified Upgrade

Template Filter - phone2numeric


Example

Display the actual phone number:

<h1>{{ phone|phone2numeric }}</h1>
Run Example »

Definition and Usage

The phone2numeric filter converts any letter in a phone number like into the actual numeric phone number.

E.g. "555-automobile" becomes 555-288662453.


Syntax

Template filters are defined by using a pipe | character followed by the name of the filter.

{{ value|phone2numeric }}