Na I doubt an interview question, prolly homework would be my best bet.
When you do explain could you also explain what is 3 tier architecture and its relation to frameworks in php? Thanks3 tier = grand parent, parent, child?
Back to school for me it seems :D HA
He's probably mistaken the term '3 tier' to mean MVC or Model, View and Controller. A lot of PHP frameworks (most) are based off of this design philosophy. In an MVC Framework the Model (the database in this case) acts separately of the View (any html output), and the Controller (any business logic) which controls it all. The main reason for this is so you don't have a bunch of database queries and PHP code in your template files.