Some Handy YouTube Tricks

I’m sure there have been times when you’ve wanted to link to a particular part of a YouTube video but, if you’re anything like me, you had no idea how to go about doing so. Well, you have two options:

  1. You can link to the video on YouTube and specify the minute and second at which you want the video to start playing.
  2. You can embed the video and specify the second at which you would like the video to start playing.

PHP Date and Time Functions

PHP offers a few really nice functions to manipulate dates and times. With the functions built into PHP, you can easily pull individual parts of a date or time and use it or format it just about any way you want.


To start, you should really familiarize yourself with PHP’s strtotime() function. The strtotime() function takes a standard date (and optional time) and converts it into a Unix timestamp. Because the strtotime() function returns boolean false if it doesn’t recognize the input as a valid date/time, you can also use it to check the validity of a date.