-1

When I run PHP in my console (any cli application) and I sending a command like below, it not returned anything!

echo 'Hi!';

Is there any way to run PHP commands directly in console or just we can run a .php file?

Note: My environment variables and path is OK.

2

1 Answer 1

3

You may use PHP's interactive shell

php -a
echo 'Hi!';
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.