개요
- PHP if
- PHP 조건문
if(43>42) echo('hello');
if(43>42) {
echo('hello');
}
<?php
if(43>42):
echo('hello');
endif
?>
<?php if(43>42): ?>
hello
<?php endif ?>
if(43>42) echo('hello');
if(43>42) {
echo('hello');
}
<?php
if(43>42):
echo('hello');
endif
?>
<?php if(43>42): ?>
hello
<?php endif ?>