Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged number



« Prev 1 Next »
Put it in functions.php
0 1953 posted 11 years ago by burnandbass
Return a pure 10-digit phone number if the number given is 10 digits or 11 digits.
0 2497 posted 13 years ago by chrisvogt
Create navigation links without the need of a plugin, using paginate_links function of wordpress core.
0 3779 posted 13 years ago by rudwolf
Straatnamen en huisnummer splitsen, hieronder diverse types straatnamen Bron: http://www.pfz.nl/archief/965267-adres-splitsen-in-straatnaam-en-huisnr/
0 1815 posted 13 years ago by MGHollander
Takes a number (no decimal) and converts it to written words.Why'd i write it to be able to do such big numbers? Why not? Note: The numbers next to the 'thousandfoldnums' are for your reference (thats how many zeros/places there are in that numbe...
0 1693 posted 14 years ago by lasavior
0 1364 posted 14 years ago by dubogii
This simple function allows you to find a weeks position in the month based on a given date. For instance I needed to alert the user their date was the "Second Week Of January" during a given month. I may never use it again but it came in very hand...
0 4330 posted 14 years ago by aristoworks
I needed to split a decimal number into the integer part and the fraction part and save both of them in different variables
0 2329 posted 15 years ago by bwangila
Add this in search.php
0 1236 posted 15 years ago by laurentzziu
Will help convert string to number OR get number in a selected string.
0 1402 posted 15 years ago by carbonr
0 1312 posted 15 years ago by Groove
A simple PHP application for counting how many views a page gets.
0 1325 posted 15 years ago by FelixT
0 1202 posted 15 years ago by jodm
this could be expanded to the billions place, but c'mon really people? it's got to call it quits somewhere
1 1810 posted 15 years ago by adkatrit
Will strip off the decimals of a number (price) unless they are necessary.
0 1246 posted 15 years ago by jmiller
Strips out every character except 0-9
0 1283 posted 16 years ago by jmiller
1 1751 posted 16 years ago by Shifter
3 1741 posted 16 years ago by Shifter
1 1681 posted 16 years ago by cobra90nj
0 1688 posted 17 years ago by Wardy
Return just the Apache version number of your server, and operating system, from $_SERVER['SERVER_SOFTWARE'] Example: print ('Apache Version: ' . apacheversion()); will return something along the lines of... "Apache Version: 2.2.10 (Unix...
1 2723 posted 17 years ago by iridium
0 1148 posted 17 years ago by jtkendall
0 1112 posted 17 years ago by jtkendall
A simple method of validating a telephone number using regular expressions and PHP
3 2765 posted 17 years ago by aristoworks
Convert an number to a position / ranking. 1 becomes 1st, 2 becomes 2nd, etc...
2 2184 posted 17 years ago by distinctdev
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 3178 posted 18 years ago by andyhartleeds
« Prev 1 Next »