<?php
$marks = 75;
if ($marks >= 50) {
echo "You passed!";
} else {
echo "You failed!";
}
?>
Explanation:
- If condition is true, “You passed!” will be printed.
- Otherwise, “You failed!” is shown.
<?php
$marks = 75;
if ($marks >= 50) {
echo "You passed!";
} else {
echo "You failed!";
}
?>
Explanation:
Leave a Reply