FILTER_SANITIZE_NUMBER_INT

Remove all illegal ineteger characters

Example
======

<?php
echo filter_var(“1php-7+Codez”, FILTER_SANITIZE_NUMBER_INT);
?>

Output
=====

1-7+

Share

Leave a Reply

Your email address will not be published. Required fields are marked *