Welcome To Snipplr
Everyone's Recent Snippets Tagged number
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A simple method of validating a telephone number using regular expressions and PHP
3
1526
posted 16 years ago by aristoworks
Convert an number to a position / ranking. 1 becomes 1st, 2 becomes 2nd, etc...
2
1113
posted 16 years ago by distinctdev
Large factorials are easy to do in LISP, although a number above (2000!) may crash it. I designed this because of an online post from a mathematician talking about the number 1000! . Code like this is difficult to write in C-like languages, but a s...
0
974
posted 16 years ago by darkphotn
How to check if a number is odd or even in PHP. Could also use the MOD (%) function, but apparently this method is better performance-wise.
12
1394
posted 17 years ago by andyhartleeds