isDivisible function for PHP
A quick function to check if a number is divisible by another.
-
function isDivisible($number, $divisibleBy)
-
{
-
if ($number % $divisibleBy == 0)
-
return true;
-
return false;
-
}
A quick function to check if a number is divisible by another.
Google Alerts is now available through an RSS feed instead of having to come through email. If you’re not already using Google Alerts to keep track of news for your sites, now may be a good time to start.
YouTube will start offering full length TV shows with ads as Google is trying to get more revenue out of the video sharing site.
Full story at NYTimes.com
On several WordPress projects I’ve needed to get the value of a custom field. Not too difficult using the get_post_meta command, but I wanted a little quicker way. So I now add this little function to the functions.php file on themes I’m working on.
Say you’ve got a custom field name thisIsMyCustomField, you’d just do this to display the value.
Need a way to show the progress on a long process on your web page? Here’s a quick little JavaScript routine that will do it for you.
![]()