Condtional Operator
3 posts
Page 1 of 1
Hi i'll be giving you some example of conditional expression that can guide you
hope this will help you clapper;
Code: Select all
just change the expression($Result)<?php
$number = 1111;
($number <1) ? $Result =
"The $number variable contains a negative value. " : $Result ="The $number variable contains a positive value.";echo "<p>", $Result, "</p><br/>"?>
hope this will help you clapper;
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023