PHP: isset() Function
What does the `isset()` function do in PHP?
- Checks if a variable is set and is not NULL
- Initializes a variable
- Checks if a variable is an integer
- Returns the type of a variable
PHP: String Concatenation
Which operator is used for string concatenation in PHP?
- .
- +
- ,
- -
PHP: Class Inheritance
Which keyword is used to inherit a class in PHP?
- extends
- inherits
- implements
- include
PHP: Defining Constants
How do you define a constant in PHP?
- Using the `define()` function
- Using the `const` keyword
- Using the `$constant` keyword
- Both using `define()` or `const`
Laravel: Defining Routes
In Laravel, which file is typically used to define routes?
- routes/web.php
- app/routes.php
- config/routes.php
- routes/api.php
Laravel: Eloquent ORM
What is Eloquent in Laravel?
- An ORM (Object-Relational Mapper)
- A templating engine
- A routing component
- A debugging tool
Laravel: Controllers
In Laravel, what is the primary function of a Controller?
- To handle user requests and return responses
- To manage database migrations
- To define database schemas
- To render Blade templates
CodeIgniter: MVC Architecture
CodeIgniter is based on which architectural pattern?
- MVC (Model-View-Controller)
- MVP (Model-View-Presenter)
- MVVM (Model-View-ViewModel)
- SPA (Single Page Application)
CodeIgniter: URL Routing
How are URLs typically structured in CodeIgniter?
- controller/method/arguments
- method/controller/arguments
- arguments/controller/method
- controller/arguments/method
CodeIgniter: Libraries
What is a CodeIgniter Library?
- A set of helper functions for common tasks
- A collection of pre-written classes to perform specific tasks
- A tool for managing database migrations
- A templating engine component