Home How can I load multiple stylesheets with foreach loop
Reply: 1

How can I load multiple stylesheets with foreach loop

Alex Brauwn
1#
Alex Brauwn Published in 2018-02-14 00:02:45Z

I am trying to load two stylesheets in HTML using PHP (style.css) & (normalize.css) plus a font-url using foreach loops but I can't quite figure out how to do this, I would love any help you guys could give. Cheers

Alex Brauwn
2#
Alex Brauwn Reply to 2018-02-14 01:34:23Z

Nvm, I figured it out. If anyone else is wondering this is how I do it

    foreach($stylesheets as $stylesheet){
      echo '<link rel="stylesheet" href="' . $stylesheet . '">';
    }
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.336469 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO