Getting input from system_ ?

BlitzMax Forums/BlitzMax Programming/Getting input from system_ ?

Running the following outputs 'hello_world' to the console inside the blitmax IDE.

system_("php -r echo('hello_world!');")


Now, I want to use this output inside of my blitzmax application. How can I do that? This doesn't work, it just prints out 0 if you print it:

local fromcmdline$ = system_("php -r echo('hello_world!');")