Creating functions for re-use will not only make your code shorter, but it makes your code much more legible.Let's say we've got a string that we want to process to remove all non-numeric characters. We would start with something like this:<?php$InString