import php code

I'm not sure if these possible, let's say i have these code on php

1
2
$php_str = 'Hello World';
echo $php_str;


i want to get the output to c++ something like

1
2
/*some code here*/
cout << php_str;


also...on php code

1
2
3
4
function a_true()
{
    return true;
}


and on c++
1
2
3
4
5
/*some code here*/
if(a_true == true)
{
     cout << "Hello World";
}


does anyone have an idea how to do these ?

EDIT: im importing it from a live website btw
Last edited on
Topic archived. No new replies allowed.