title: Convert YAML file to PHP File
body: <p>I have a bunch of Yaml configuration files that I want to convert to straight PHP files so that the application does not have to process the Yaml files every time.</p>
  
  <p>I know that there are a lot of libraries out there that will let you convert Yaml to a php array, but are there any libraries that will let you convert a yaml file to a php file?</p>
  
  <p>The thing that makes this tricky is that converting a yaml file to php will usually produce a multidimensional array.</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I just realized that the following code does what I think i need. Notice the second paramter in the print_r. Pretty cool...</p>
  
  <pre><code>$test = print_r($yaml, true);
  file_put_contents('test.php', $test);
  </code></pre>