Different content for Mac and Win

Display different content to Mac and Windows users (example:software download link for different platforms).

Code Snippet:

<?php
if (stristr($_SERVER&#91;'HTTP_USER_AGENT'&#93;,"mac")) {
	echo 'Hello, Im a Mac.';
} else {
	echo 'And Im a PC.';
}
?>

Posted in Conditional