Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website
Menu Close

tips

  1. Home>
  2. Blog>
  3. tips>
  4. tips
Read more about the article How to Convert Date or Time to any Timezone and Dateformat with PHP
Credits

How to Convert Date or Time to any Timezone and Dateformat with PHP

  • Post author:Christos Pontikis
  • Post published:November 4, 2013
  • Post category:Web Development
  • Reading time:4 mins read

Date manipulation is a common and extremely useful development task. It was never easy with PHP, until PHP5 and DateTime class. There are many cases you need to convert dates.…

Continue ReadingHow to Convert Date or Time to any Timezone and Dateformat with PHP
Read more about the article Check if a String represents a Valid Timezone with PHP
Credits

Check if a String represents a Valid Timezone with PHP

  • Post author:Christos Pontikis
  • Post published:November 4, 2013
  • Post category:Web Development
  • Reading time:1 mins read

Sometimes you want to check if a string represents a valid timezone. Using PHP versions greater than 5.2, timezone_identifiers_list() could be a solution. Take a look in the following function:…

Continue ReadingCheck if a String represents a Valid Timezone with PHP
Read more about the article What is the JavaScript Equivalent of print_r in PHP?
Credits

What is the JavaScript Equivalent of print_r in PHP?

  • Post author:Christos Pontikis
  • Post published:October 2, 2013
  • Post category:Web Development
  • Reading time:3 mins read

What is the JavaScript Equivalent of PHP print_r() function? In other words, how you can "print" a javascript object in a way that's readable by humans? Code You could use…

Continue ReadingWhat is the JavaScript Equivalent of print_r in PHP?
Read more about the article Create a Simple Banner Rotator with PHP in a Minute
Credits

Create a Simple Banner Rotator with PHP in a Minute

  • Post author:Christos Pontikis
  • Post published:September 27, 2013
  • Post category:Web Development
  • Reading time:2 mins read

PHP shuffle randomizes (shuffles) the order of the elements in an array. You may use this function to create a simple banner rotator. Define your banners Create $banners array with…

Continue ReadingCreate a Simple Banner Rotator with PHP in a Minute
Read more about the article Easily Create a Timezone List with PHP
Credits

Easily Create a Timezone List with PHP

  • Post author:Christos Pontikis
  • Post published:September 27, 2013
  • Post category:Web Development
  • Reading time:2 mins read

Sometimes, you want to create a list of available time zones to prompt your user to select his/her time zone. Fortunately, PHP offers timezone_identifiers_list (PHP 5 >= 5.2.0). You can…

Continue ReadingEasily Create a Timezone List with PHP
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 9
  • Go to the next page

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!


Say Hello to Gutenberg with my new Free WordPress Plugin Boilerplate for Developers!

Star it on Github!


  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2025
Close Menu