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

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -