Filter FILTER_SANITIZE_NUMBER_INT December 27, 2011 Pramod T P Leave a comment Remove all illegal ineteger characters Example ====== <?php echo filter_var(“1php-7+Codez”, FILTER_SANITIZE_NUMBER_INT); ?> Output ===== 1-7+