hi,
how do you return values in functions so that if there are two possible values each one can be returned rather than the last one. i have a function that returns either 1 for true and 0 for false. but it always returns false because i dont think it ends when it is true:
function check_dupes ($var1, $var2) {
while (blah) {
if (blah?) {
return 1;
}
}
return 0;
}
there is another way of doing this using an if/else at the end, but i would like to know what i am doing wrong here.
thanks,
bakaneko