↧
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 ArticleAnswer 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 ArticleAnswer 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 Articlehow 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