What is a controller in php?



What is a controller in php?..

Answer / Tuba Shakeel

In PHP, a controller is a component of an MVC (Model-View-Controller) application that handles user requests and directs them to the appropriate model or view. It typically takes a request from the client, processes it, interacts with models as necessary, and sends responses back to the client via views.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is array function in javascript?

1 Answers  


What is difference between rest and http?

1 Answers  


Tell me what is the use of "enctype" attribute in a html form?

1 Answers  


Which operator is used to concatenate two strings in PHP?

1 Answers  


What are php expressions?

1 Answers  


Which programming language does php resemble?

1 Answers  


What are the different tables(engine) present in mysql, which one is default?

1 Answers  


Can I use node js with php?

1 Answers  


•How to access crystal reports through PHP code?

1 Answers   Satyam,


How does csrf token work?

1 Answers  


what is the dirrence in PHP4 & PHP5 . ?

8 Answers  


What is the php function that removes the first element of the array and returns it?

1 Answers  


Categories