PHP CLI tutorial 2 | How to use the PHP Interactive shell

preview_player
Показать описание
In todays PHP command line tutorial we are going to take a look at the php interactive shell. I feel that this is a very under used feature of PHP and it can offer simple ways to discover more about PHP, its functions and classes.

// Web Development tutorials and courses

JavaScript courses

Python courses

PHP courses

Linux courses

Docker courses

HTML courses

MYSQL courses

// Follow How To Code Well

// Support How To Code Well
Be a member on Patreon:
Buy me a coffee:

// Recommended products and services

Disclaimer: Links included in this description might be affiliate links. If you purchase a product or service with links that I provide I may receive a small commission. There is no additional charge to you.

Thank you for supporting How To Code Well
Рекомендации по теме
Комментарии
Автор

Thanks a lot for these extremely useful and informative videos!

Vitalii-mr
Автор

Let’s assume that I get a brilliant idea in the interactive shell and I want to save that as source. How?

wilbertvanbakel
Автор

Thats amazing, didn't know we can do that lol

aminator
Автор

windows 10:
php -a
> arr [tab]

will just fire autocomplete, result:
> array_walk

How do you list the methods?

MartinCode
Автор

Appreciated .. I have an issue I am not getting php> when I enable interactive shell mode . It give message

C:\xampp\php>php -a
Interactive mode enabled

then blank screen .. could you plz help me ?

neharajput
Автор

Thats great! Thank you for the video!)
Could you help me please? When I run php script on CLI (Windows 10) it freezes after 1-3 hours of work (I checked memory, it consume ~40Mb of memory). I cant understand why...

vladsavchenko
Автор

when I put in php -a t gives me this error "Interactive shell (-a) requires the readline extension." how do I fix this?

collinveerman