I have tried
$output = null;
exec('python hyp.py' $output);
echo var_export($output, TRUE);
and
var_dump($output);
Both is working perfectly. The output I get is
array(0 => 'first line output', 1 => 'second line output',)
I need a way to output the python file without showing the arrays and arrows in between each line of output.
You have to loop trough the output array and then echo each line: