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

tips

  1. Home>
  2. Blog>
  3. tips>
  4. Page 4
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
  • Write For Us
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2023
Close Menu

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in settings.

 

Please select before continuing.

pontikis.net Logo
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

We use Google Analytics to collect statistics about our visitors.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

3rd Party Cookies

This website uses Google Adsense to display ads.

Keeping this cookie enabled helps us to improve our website.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

Cookie Policy

More information about our Cookie Policy

We use Google Analytics to collect statistics about our visitors. Learn more about this provider

Cookie Domain Description Duration Type
_ga .pontikis.net The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors. 2 years Analytics
_gid .pontikis.net Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously. 1 day Analytics
_gat_gtag_UA_334875_9 .pontikis.net Set by Google to distinguish users. 1 minute Analytics