Function Conditional Statements:
1. Function conditional statement is the function specified inside the conditional statements.
2. We can’t call 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