How to pass code either to C++ or to PHP?
To include code either in the C++ target or the PHP one, we have to use first the scriptol tags ~~ to insert target code, not processed by the scriptol compiler. Line starting with # are C++ directives. They are just comment in PHP. The code below includes the “header.hpp” in C++, but the conditional statements are not compiled and the code embedded is ignored by the C++ compiler. The PHP interpreter ignores all lines starting by # and processes the “echo” statement, or any other statement you may have inserted at this place.