Sometimes you have a dynamic sentence with a amount in it. How to show the plural or not?
See the simple example:
//$users is an array is this example
$echoUsers = (count($users) == 1) ? $users.' user registered' : $users.' users registered';
echo $echoUsers;
Zebra tables are very easy to read and they are very nice to look at if you style them correctly. But how do you accomplish this?
Well, here I am with a very basic example. There are a lot of methods but this is the one I’m using. Continue Reading »
For a Google Maps tool I’m creating I needed a function similar to the map.checkResize() which was used to reinitialize the map width and height after a re-size in version 2. If you don’t run a similar action a grey area will appear which means that this is not an ‘active’ part of the map.
For version 3 there was no documentation about this function but after a good search I’ve found the solution on the forums of the Google Maps API and I’d like to share it with you. Continue Reading »