PHP Classes

File: example/index.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  PHP CSS to Inline Styles  >  example/index.php  >  Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP CSS to Inline Styles
Convert CSS styles into HTML attribute values
Author: By
Last change:
Date: 4 years ago
Size: 445 bytes


Class file image Download

require_once 'config.php';
__DIR__ . '/../vendor/autoload.php';


// create instance
$cssToInlineStyles = new CssToInlineStyles();

$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm');
$css = file_get_contents(__DIR__ . '/examples/sumo/style.css');


// output
echo $cssToInlineStyles->convert();

For more information send a message to info at phpclasses dot org.