0% found this document useful (0 votes)
2 views3 pages

sk web

The seminar report by Suhas Kadam discusses control structures in PHP, focusing on the IF and IF ELSE statements used to control program execution based on conditions. It provides syntax examples and code snippets to illustrate how these statements function in PHP. The report is part of a course on Web Technologies for the TY BBA (CA) class.

Uploaded by

harshraj nikam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

sk web

The seminar report by Suhas Kadam discusses control structures in PHP, focusing on the IF and IF ELSE statements used to control program execution based on conditions. It provides syntax examples and code snippets to illustrate how these statements function in PHP. The report is part of a course on Web Technologies for the TY BBA (CA) class.

Uploaded by

harshraj nikam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SEMINAR REPORT

NAME : SUHAS KADAM


CLASS : TY BBA (CA)
ROLL NO : BC193006

SUBJECT : WEB TECHNOLOGIES

TOPIC : CONTROL STRUTURE IN PHP.


The Control statement are used to control the flow of
execution of program . This execution order depends on
the supplies data values and the condition logic .
PHP Supports a number of traditional programming
constructs for controlling the flow of execution of
program.
1. IF STATEMENT : The IF statement allow you to
make decision based one or more conditions and
execute a price of code conditionally.
The syntax of the IF Statement.
IF (Condition)
{
//Put the code
}

EXAMPLE : <?PHP
$ a=”Amar”;
$ b=”Akbar”;
IF ($ a= =$ b);
Echo “Both string are equal”;
Echo “IF block not executed”;
?>

2. IF ELSE STATEMENT: The IF statement allow we to


run a block of code if the conditions evaluates to
true .If the condition evaluates to false the if
statement skips the codes block inside its body
The syntax of the else statement
IF (condition)
{
// execute if condition evaluate to true ;
} else
}
// execute if condition evalutes to false ;
}

Example :
<?PHP
$var 1=”PHP”;
$var 2= “JAVA”;
Echo “Both the string are equal”;
Else
Echo “Both the string are not equal”;

TEACHER SIGNATURE : DATE :

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy