A regular expression (sometimes abbreviated to "regex") is a pattern used to match character combinations in a string.
For example, a regular expression can be used to search for all text lines in a paragraph that contain word "red" and display those lines where the match is found.
The switch statement allows us to make a decision from the number of choices.
If a match is found to a case label, the program executes the associated statement.
If no match is found with any of the case statements, only the statements following the default are executed.
PHP error handling
23.10.2012 13:02 in Php | 0 comments | source: | 4469 clicks
PHP has a number of functions for handling as well as reporting errors. Besides, you can define your own way of handling and reporting errors. In this and subsequent pages we are going to discuss about installation, runtime configuration, predefined constants and functions relating to PHP error handling and reporting.
PHP if statement
23.10.2012 13:01 in Php | 0 comments | source: | 4190 clicks
PHP uses if keyword to implement the decision control instruction. The structure is similar to C language.
23.10.2012 13:01 in Php | 8 comments | source: | 5419 clicks
Variable is a symbol or name that stands for a value. Variables are used for storing values such as numeric values, characters, character strings, or memory addresses so that they can be used in any part of the program.