Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Php
Statement 98 codes
Home
Php
Statement
1 A division table
2 A for loop in PHP
3 A for Loop That Divides 4000 by Ten Incremental Numbers
4 A helpful addition to if statements is the elseif statement, which allows you to chain conditions together in a more intelligent
5 A sample while loop that counts to 10
6 A switch Statement
7 A switch Statement for string
8 A while Statement
9 Alternating table row colors with for()
10 An if Statement
11 An if Statement for string
12 An if Statement That Uses else
13 An if statement That Uses else and else if
14 Approximating a square root
15 Array element order and foreach()
16 Basic Use of the if Statement
17 Break 1 or break 2
18 Break in Nested Loops
19 Break Statement
20 Break within a for loop
21 Breaking a Loop
22 Case Switching
23 Catching Exceptions in PHP 5
24 Checking multiple conditions
25 Continue Statement
26 Continue within a for loop
27 Convert the while statement into a for statement
28 Counting to 10 with do while
29 Create a while statement that prints every odd number between 1 and 49
30 Displaying the contents of an array using a loop
31 Do while loop
32 Do while loop is executed at least once
33 Do while loop with counter
34 Do while with integer counter
35 Executing Multiple Statements with One if
36 Extends Exception to create your own exception
37 Fahrenheit and Celsius table by for loop
38 Fahrenheit and Celsius table by while loop
39 For loop
40 For loop format
41 For statement without all three statements
42 For statement without second condition
43 Foreach Demo
44 If statement inside a for loop
45 If-else Statement
46 Implementing the traversable Iterator
47 In a switchcase block, you specify what you are checking against, then give a list of possible values you want to handle
48 In if statement use OR to connect two conditions
49 Infinite Loops
50 Iterating through a multidimensional array with for()
51 Iterating through a multidimensional array with foreach()
52 Iterating through a numeric array with for()
53 Iterating Through Object Properties
54 Loop goes from 0 to 100 in steps of 0 1
55 Looping through an Enumerated Array
56 Loops Within Loops
57 Making a decision with if()
58 Modifying an array with foreach()
59 Multiconditional if Statements
60 Multiple expressions in for()
61 Multiple statements in an if() code block
62 Nesting Two for Loops
63 Omitting the break statement can be useful in some cases
64 Print the string Child message if the $age variable is between 1 and 17
65 Printing a select menu with for()
66 Printing a select menu with while()
67 Printing out all the web-safe color codes
68 Specifying a number after break, such as break 2, to break out of two loops or switchcase statements
69 Switch and constants
70 Switch command for string value
71 Switch Statement
72 The break command applies to both loops and switchcase statements
73 The do while Statement
74 Throwing an Exception
75 Use and to connect two statement in if statement
76 Use for loop to output HTML table
77 Use the default case
78 Using break to avoid division by zero
79 Using continue instead of break
80 Using Custom Exceptions to Handle Different Circumstances
81 Using else with if()
82 Using elseif()
83 Using endswitch to end the switch definition
84 Using foreach() to Iterate Through an Array
85 Using foreach() with numeric arrays
86 Using if statement to print Youth message if $age is between 18 and 35
87 Using if Statements to Mimic a select Statement
88 Using if to test for multiple values
89 Using PHP 5 exception handling
90 Using switch to test for multiple values
91 Using the break Statement
92 Using the continue Statement
93 Using the DEFAULT
94 Using the for Statement
95 Using the switch Statement
96 What happens when there are no break keywords
97 While and loop counter
98 Within an if Else statement