Thanks for the link, I did not notice it but will take a look.
With the code I post above however I don't get how it decides whether to echo 'even' or 'odd'. fmod() will only return an integer correct? So how does it interpret from that integer which result to echo?
@James The link I gave you is an introduction to the PHP language. Since you're unfamiliar with some basic language-level concepts, you'd be much better served by simply reading it, as opposed to answering one-off questions all night, and waiting for answers. :-)
s/answering/asking/
@Alexio The question mark comes after the second $foo, which is where the evaluation is taking place.
This is especially nice when you're doing something simple like setting a value. Rather than if($condition){$val = 1;} else {$val = 2;} (which is a mouthful), you can use the much smaller $val = $condition ? 1 : 2;
The second advantage is that since it takes up fewer lines of code (and less space) it makes it easier to scan through very long projects. It condenses simple concepts into a single line rather than spanning them across several.
I was only hired as a programmer. It's a shame they make me look after the server stuff as well because I normally just don't care about it. As long as it works ya know?
well it was beyond me. Seeming as nothing was on the server yet I just reinstalledit back to how it was and decided not to try installing packages like that again
and now there are websites running on it I need to just let it be