Category Archive for: "PHP"

  1. PHP

    PHP Convert HTML Entities back to their applicable characters

    If you have escaped raw html and want to convert the HTML Entities back to their applicable characters using PHP, then this can be done very easily using just 1 line of code. In this article, I am going to share a very simple way to do it. So read on to find out how […]

  2. PHP

    PHP Array Last Element / Value Examples

    At one point of time or the other, you may have worked with a very important concept in PHP, called “Arrays”. There are simpler ways to get the first element of an array. But do you know how to get array last element, or get last value from array using PHP especially when that array […]

  3. PHP

    PHP Get Image Dimensions (Width & Height) Examples

    Have you ever wanted to get image dimensions  using PHP? In this article, I am going to share an easy way to use PHP to get image dimensions (width & height).

  4. PHP

    Redirect Page PHP After 5 Seconds Examples (1 line code)

    You can use redirection in PHP to redirect to a page. Redirect page examples provided. Read on to find out more on how to do this.

  5. 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.

  6. 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.

  7. 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.