Yes it is true. PHP script can run and execute if condition with out else block.
Example
<?php
if(condition===true){
echo "hello";
}
Output: hello
Report
Question Answer Forum
Question: If Condition block can execute without else back in PHP. Is it true or false?
Topics: PHP,If condition
Paste old question below.
Yes it is true. PHP script can run and execute if condition with out else block.
Example
<?php
if(condition===true){
echo "hello";
}
Output: hello
Wait Processing...
Only Logged in users can post reply.