The Best Practice for Handling Date Time in PHP

Author : admin

Date time is very extremely important if we will build critical application, so we must special attention for it. Handling date time properly in our program is more complicated than handling strings or numbers variable. Because date time is not a single value but a collection of values, such day, month, year, hour, minute and second. In this discussion, we will share the best practical, how we handling date time in our application.

In the programming convention, date time calculation is to treat a particular time and date as a single value, the number of seconds that have elapsed since midnight on January 1, 1970. It’s called an epoch timestamp. … continue reading : The Best Practice for Handling Date Time in PHP.

15 November 2009 at 12:03 - Comments

The Secret of PHP Variables

Author : admin

If we are familiar with programming, we are certainly familiar with variables, how to declare and use it. In this discussion, we will discuss more about the variables, with specific scope of PHP as programming language and what is the secret behind the PHP variables.

Variables are containers used to hold information and it can be used later in our script. A variables has a name and information is stored in the variable. So, how to we will declare and create it ..? … continue reading : The Secret of PHP Variables.

15 November 2009 at 00:14 - Comments

Basic Learning PHP Function

Author : admin

PHP as programming language and server side scripting was originally using procedural programming, it’s not an object oriented language. In procedural programming, real power of PHP comes from functions ( in the PHP there are more than 700 built functions ). See detail the built in functions in the PHP, please visit PHP Site Reference.

A function in the PHP is a block of code that can be defined once and reused in multiple part of the program. Functions often take multiple parameters that allow we to pass data in and out of our functions. In some cases, a function doesn’t have to take any parameters at all. … continue reading : Basic Learning PHP Function.

2 November 2009 at 23:45 - Comments