Very very long story short, I am basically trying to use a regex (or maybe even string replace) to change
@import url('narf.css');
to
<?php include('narf.css'); ?>
So far, I have come up with this, BUT it does not close the PHP tag....
$var = str_replace('@import url', '<?php include', $var);
Aside from this, I am kinda stuck. I am HORRIBLE at regex syntax and everything I have tried or tried to look up has lead me down a dead end road.
Any help would be MORE than appreciated.