sure there is, you run the code in your browser, then you view source and copy that and give it to the validator, since they are only checking your html/xhtml compliancy, they could care less what happens what your php code looks like, just what the browser renders