How to get php -r to output on OSX command line -
i trying run like
php -r 'echo "test"'
on mac osx command line. throws no error, in fact nothing happens @ all.
how can output "test" on command line?
thanks answers
you need semi-colon mark end of command, i.e.
php -r 'echo "test";'
(or
php -r 'echo "test\n";'
to move new line.)
Comments
Post a Comment