Php Conditional Statements : If And Switch Statements
Php Conditional Statements : If And Switch Statements :
There are two types of php conditional statements they are
1. If
statement
2. Switch
statement
Different if statements :
1. Simple if statemenet.
2. If else statement .
3. If else
if else statement [ladder if].
4. Nested
if
2.Switch Statement :
Ex: switch
statement
<?php
Echo “<h1>”.
$c = “A”
Switch($c)
{
Case “A”
without break point output is
ABCD
Echo “A”;
with break point output is A
Break;
Case “B”
Echo “B”;
Break;
Case “C”
Echo “C”;
Break;
Default : echo
“D”;
}
Nice site....Please refer this site also Our vision success!Training are focused on perfect improvement of technical skills for Freshers and working professional. Our Training classes are sure to help the trainee with COMPLETE PRACTICAL TRAINING and Real time methodologies
ReplyDeleteDot Net Training In Chennai | Dot Net Training Institute In Chennai | Dot Net Course In Chennai
Software Testing Training Chennai | Software Testing Course In Chennai | Testing Courses In Chennai
Java Training Institute in Chennai | Core Java Training in Chennai | Java Course and Certification
PHP Course in Chennai | PHP Training Institute in Chennai | PHP Course and Certification