Quantcast
Channel: how works or operator in if statements and print - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by KernelOverflow for how works or operator in if statements and print

You write condition? You use if and else, if no else in if you put return. Goodluck

View Article


Answer by Ravi Hirani for how works or operator in if statements and print

For your first question,your getnext() function must be return some valid integer value then only you can compare it with integer 1.for second,You should writeif($a == 1 && $b == 1){ echo 'both...

View Article


Answer by Dimitri Bosteels for how works or operator in if statements and print

You could for example do as follows : if($a ==1 || $b==1){ print (($a == 1)? $a : $b);}

View Article

how works or operator in if statements and print

I have two questions 1) how can i make php to check getnext() function,if it exists or what value it has ??? $a = 1;if($a == 1 or getnext()== 1){ echo "yeap"; //this works}2)i want to write condition...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>