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...
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...
A PHP file may contain text, HTML tags and scripts. Scripts in a PHP file are executed on the server.
What You Should Already Know
Before you continue you should have a basic understanding of the following:
* HTML / XHTML
* Some scripting knowledge
What is PHP?
* PHP stands for PHP: Hypertext Preprocessor
* PHP is a server-side scripting [...]
Read More...
PHP is a server-side scripting language for creating dynamic Web pages. You create
pages with PHP and HTML. When a visitor opens the page, the server processes the PHP
commands and then sends the results to the visitor’s browser, just as with ASP or ColdFusion.
Unlike ASP or ColdFusion, however,PHP is Open Source and cross-platform. PHP runs [...]
Read More...