X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=format.php;h=d5fb32bef179e2490a424f1767670db659964974;hb=15fa6e23941fd5497ca19266adaede5c19e3836a;hp=60d0bf08a531f279862d0700726a3ff6cc70b3dd;hpb=fe7ab127fc133be74b2601cbaa3ae789d7e2a2d7;p=wfpl.git diff --git a/format.php b/format.php index 60d0bf0..d5fb32b 100644 --- a/format.php +++ b/format.php @@ -22,6 +22,10 @@ # This file contains basic encodings +function format_int($str) { + return ereg_replace('[^0-9]', '', $str); +} + function format_oneline($str) { $str = str_replace("\r", '', $str); return str_replace("\n", '', $str);