Write a PHP program to check if y is greater than x, and z is greater than y from three given integers x,y,z
<?php function test($x, $y, $z) { return $x < $y && $y < $z; } var_dump(test(1, 2, 3))."\n"; var_dump(test(4, 5, 6))."\n"; var_dump(test(-1, 1, 0))."\n";
Sample Output:
bool(true) bool(true) bool(false)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer