Click here to Skip to main content
15,171,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've got a test task that requires to write a basic app with CRUD functionality (a list of visitors), but all the user input and app output has to go through the command-line interface. Everything has to be done in raw php.

If anyone could provide links to guides, or better yet, to complete examples of this type of an app I'd really appreciate that.

This is an interesting task but I've never had to do anything like this and all the guides on the internet suggesting using a framework.

Thanks for any help.

What I have tried:

Asking some people in person and browsing the interwebs. They all say that this is a relatively easy task, but I not for a new come like me.
Posted
Updated 6-Jan-21 1:48am

1 solution

You can learn about readline at PHP: readline - Manual[^]. Search from there for the print command to send your output to the console.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900