The string is split into php and HTML sections, with each php section being evaluated and the HTML ones displayed in their current form. A web based editor that makes use of the MixedEval class is also included. The editor may be helpful for learning php.
MixedEval allows the user to create a variable number of textareas, each of which can contain mixtures of php and html which, on submit, are parsed and displayed. Some error handling and feedback is also included.