This handy function allows you to pass a filesize in bytes and have it returned with the appropriate suffix.
Credit is due, but I don’t remember where I originally found it (possibly the PHP documentation site).
Read more…
Here is an easy to use function to allow you to display a list of countries to your users – this avoids them having to type it out (potentially incorrectly), and is ideal for use in a select field (drop-down box).
As an added bonus, you can also download a collection of flag images, with each image filename renamed to match the corresponding array key. The original images can be found at famfamfam.
Read more…