PHP Interactive Mode

Python programmers will be familiar with Python’s interactive mode. This is really cool. It allows you to type a line of python code and Python will execute it straight away. It’s really nice for debugging and testing. It’s also cool if you want to play around with Python.

Python Interactive Shell 

Besides Python’s extensive library, this is probably my favourite feature of Python.

PHP has a similar feature but compared to Python’s version, it kinda sucks. You can access it by typing php -a at the command line.

PHP Shell

Now PHP has a more respectable interactive shell. You will need PHP 5 to use it.

This tool could be a real boon for PHP developers, especially those developers who want to take PHP to the extreme and onto command line/GTK scripting. 

One thought on “PHP Interactive Mode

Leave a Reply

Your email address will not be published. Required fields are marked *