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 : PHP Comments

Author : admin

In the previous tutorial, we learn how to select and use the PHP tags. In this tutorial, we will discuss how to give the best comment in the PHP Script. As with PHP tags, PHP gives we multiple choices for our comments in the PHP Scripts.

Syntax comments in PHP always begins with a special character sequence and all text that appears between the start of the comment and the end will be ignored. PHP’s comments will not be displayed to our visitors. It’s only way to view when we are editing and only useful to PHP programmers. A comment is some part of a script file which the interpreter will ignore it when the script executes. There are two type syntax comments available : single line and multiple line comment. … continue reading : Basic Learning PHP : PHP Comments.

13 August 2009 at 16:25 - Comments

Basic Learning PHP : PHP Tags

Author : admin

This tutorial is first tutorial of the basic learning PHP series. Starting from basic elements of PHP and the goal of this tutorial, we can build manageable application. So, this tutorial is intended for everyone beginner in PHP.

PHP’s syntax is derived from many languages, predominantly the C language but Perl has also had a lot of influence on it’s syntax. In the latest object oriented additions, more Java like syntax is creeping in as well. … continue reading : Basic Learning PHP : PHP Tags.

13 August 2009 at 14:40 - Comments