It's possible to write code to create php escapes which can be processed later by substituting x3f for '?' - as in echo "<x3fphp echo 'foo'; x3f>"; This is useful for creating a template parser which later is rendered by PHP.