Archive

Archive for the ‘PHP Functions’ Category

PHP Switch Statement

March 12th, 2007 Shafiq Ahmed No comments

switch/case is very similar or an alternative to the if/elseif/else commands. The switch command will test a condition. The outcome of that test will decide which case to execute. Switch is normally used when you are finding an exact (equal) result instead of a greater or less than result.

switch (condition) {case “value1” :
block of [...]

    Read More...

PHP date() function

March 12th, 2007 Shafiq Ahmed No comments

Definition and Usage
The date() function formats a local time/date.
Syntax

date(format,timestamp)

Parameter
Description

format
Required. Specifies how to return the result:

d – The day of the month (from 01 to 31)
D – A textual representation of a day (three letters)
j – The day of the month without leading zeros (1 to 31)
l (lowercase ‘L’) – A full textual representation of [...]

    Read More...
Categories: PHP Date, PHP Functions

Welcome to Shafiq.co.in

November 29th, 2006 Shafiq Ahmed No comments

Welcome to Shafiq.co.in

    Read More...