Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of /home/jason/dev/git/wfpl
[wfpl.git]
/
format.php
diff --git
a/format.php
b/format.php
index
a0e2f85
..
1bac609
100644
(file)
--- a/
format.php
+++ b/
format.php
@@
-26,6
+26,10
@@
function format_int($str) {
return ereg_replace('^0*([1-9])', '\1', $str);
}
+function format_zip($str) {
+ return ereg_replace('[^0-9]', '', $str);
+}
+
function format_filename($str) {
$str = strtolower($str);
$str = ereg_replace('[^a-z0-9_.-]', '_', $str);