I'm a PHP newbie, and I need to replace my current code for linking to a stylesheet (which looks like <link rel="stylesheet" href="/style.css" type="text/css">) by a PHP alternative. If it's important, the code I'm using which will link to it is php-mobile detect.
The structure I wanted to use was

$detect = new Mobile_Detect();

    // code to run for the Apple iOS platform.
    <link rel="stylesheet" type="text/css" href="style.css" />;

which should work, except, 1. Dreamweaver gives me a syntax error alert at the second line, and 2. I get a browser error citing an unexpected "<". I tried removing the two brackets from the <link> line, only to get "Unexpected T_STRING" from my browser.
What do I do to make this script link to an external stylesheet?