php tutorials -> conditional in php

 17-conditional.php

<?php

$x=5;
$y=10;
if($x ==$y)
{
echo "its true";

} else {
echo "its false";
}
echo '</br>';
if($x < $y)
{
echo "its true";

} else {
echo "its false";
}
echo '</br>';
if($x > $y)
{
echo "its true";

} else if($x < $y) {
echo "its false";
}
// shorthand

//ternary
echo '</br>';
$a= $x > $y ? "its greater": "its lesser";
echo $a;
?>

=

No comments:

Post a Comment

React -1 ( react with ravenndra kanchi)

 react with tool chanis 45 to 50 sessions core  after 50 sessions -> some tooll chains == react with type script mern stackaplication in ...