Category Archive for: "PHP"

  1. PHP

    PHP: Time difference Facebook Twitter style

    If you ever wanted to display the time elapsed in Facebook or Twitter style (recall the format: 20 minutes ago, 100 days ago?). Here is a handy little snippet in PHP, that will let you do exactly the same.

  2. PHP

    PHP: Add Date, Months, Years to current date

    Did you ever want to add date, months or years to current date in PHP but never figured out how to? Well, this little snippet can come in handy.

  3. PHP

    PHP Validate Twitter Username Example

    If you want to validate Twitter username using PHP i.e check whether its available for registration or not, this can be easily achieved using CURL. The following function will check whether twitter username exists for registration or if it is already registered.