I want to take these:
$xp = '(Windows NT 5.1)';
$vista = '(Windows NT 6.0)';
$win7 = '(Windows NT 6.1)';
And put it into a function win{}.
Basically I want it so that if a person is using a windows' OS the output would be $win so I can then use it as an if else listing...
Or would I be better off using this in an array?
Is this possible? I know it may sound confusing so I am sorry if it is, I really don't know how to explain this correctly.