Profile
Achievement
andyhartleeds's Recent Snippets
- All /
« Prev 1 Next »
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
1416
posted 17 years ago by andyhartleeds
A way to call a function before the window is unloaded/refreshed/etc. Used in the first E-shot Management System. Useful for auto-saving data/content before the window is closed or refreshed.
1
928
posted 17 years ago by andyhartleeds
Strip out non-alphanumeric characters. Very useful for use with filenames.
3
940
posted 17 years ago by andyhartleeds