हिंदी

Explain the Function of Conditional Statements in PHP.

Advertisements

प्रश्न

Explain the Function of Conditional Statements in PHP.

दीर्घउत्तर
Advertisements

उत्तर

  1. Function conditional statement is the function specified inside the conditional statements.
  2. We can’t call a conditional function before its definition.

Syntax:

if(expression)
{
function function_name( )
{
block of statements;
}
}
function_name( ); // calling function.
Eg:
<? php
display( );
if(TRUE)
{
function display( )
{
echo “condition and function”;
}
}

Output: condition and function

shaalaa.com
Php Conditional Statements
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: PHP Conditional Statements - Evaluation - PART – IV [पृष्ठ १११]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 12 TN Board
अध्याय 6 PHP Conditional Statements
Evaluation - PART – IV | Q 1. | पृष्ठ १११
Advertisements
Share
Notifications



      Forgot password?
Use app×