I am looking for something in php that would given output (raw) of a system command in a variable along with the return code.
execdoes this, but the output is in array and hence the data returned is not proper(as\ncomes in new index).systemoutputs the data in the output stream and not in a variable.shell_execdoes not give the return value but gives raw data.
implode()the result fromexec()to turn it into a string?