Answers for "php shell_exec output as string"

PHP
1

exec output php

$output = exec('ls');
Posted by: Guest on June-25-2020
0

shell use command output as string

# you can use "$(command)" to use the output of the evaluation of command as string :

echo "Lorem $(date +"%d.%m.%y") Ipsum"
#>Lorem 17.02.21 Ipsum
Posted by: Guest on February-16-2021

Browse Popular Code Answers by Language