Try this:
<?php
require_once("dompdf/dompdf_config.inc.php");
$test = "This is a test string inside of another String";
$test2 = "This is how you break out of a string to insert another
string."; // Works great for $_GET and $_POST. The . (period)
concatinates the strings.
$html =
"<h1 align='center'>$test</h1><p>" . $test2 . "</p>"; // Important to
note, you have to use the double quotes if you want to insert a string
inside of another string. single quotes will make it display $test
instead of the value of $test.
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("work_order.pdf");
}
?>