- Name any five array functions.
- What are the types of arrays.
- What is
extract()
function?- Extracts the values from an array into variables
- Name any five string functions.
- What is
strstr()
function?- Finds the first occurrence of a string within another string
- What are the access modifiers in php?
- What is the difference between
include
andinclude_once
? - Explain php errors.
- Warning
- Calling on an external file that does not exist in the directory
- Wrong parameters in a function
- Notice
- Called on an undefined variable
- Parse error
- Parse errors are caused by misused or missing symbols in a syntax.
- Unclosed brackets or quotes
- Missing or extra semicolons or parentheses
- Parse errors are caused by misused or missing symbols in a syntax.
- Fatal error
- Fatal errors are ones that crash your program and are classified as critical errors
- call to undefined function
- Fatal errors are ones that crash your program and are classified as critical errors
- Warning
- What is traits?
- Traits are a way to group functionality into reusable components.
- Traits can be used to share functionality between classes.
- What is the difference between echo and print in PHP?
- What is a session in PHP?
- Difference between session and cookies in PHP?
- What is the difference between unlink and unset??
- What is Composer?
- What template engine is used in Laravel?
- What is artisan command?
- What is migration in Laravel?
- What is seeder in Laravel?
- What is Eloquent in Laravel?
- What are named routes in Laravel?
- What is middleware in Laravel?
- Any five artisan commands.
- Explain resource routes in Laravel.
- What is Docker?
- What is a container?
- Name essential Docker commands.
- How to ssh into a container?
- What is vue.js?
- list some off the features of vue.js .
- Explain any 5 vue directives.
- What is computed property?
- How to print rendered html code in vue template?
users
id | name |
---|---|
1 | User 1 |
2 | User 2 |
3 | User 3 |
4 | User 4 |
5 | User 5 |
6 | User 6 |
7 | User 7 |
8 | User 8 |
9 | User 9 |
10 | User 10 |
user_info
id | user_id | age | active | |
---|---|---|---|---|
1 | 1 | [email protected] | 85 | 1 |
2 | 2 | [email protected] | 10 | 0 |
3 | 3 | [email protected] | 81 | 1 |
4 | 4 | [email protected] | 26 | 0 |
5 | 5 | [email protected] | 39 | 1 |
6 | 6 | [email protected] | 23 | 0 |
6 | 7 | [email protected] | 51 | 1 |
6 | 8 | [email protected] | 85 | 0 |
6 | 9 | [email protected] | 27 | 1 |
6 | 10 | [email protected] | 68 | 0 |
- Write an sql query to print name and email of all users who are active
- Which template engine Symfony supports?
- What is the form helper function in Symfony?
- What is the use of Flash Bag?
- How to get the request parameters using Http/Request?
- Does Laravel use Symfony?
- What are Bundles in Symfony?
- Explain an environment in the Symfony framework?
- What is interface in PHP?
- Is there any way to create a class so it cannot be instantiated?
- What is abstract class in PHP?
- What is difference between traits and interface in PHP?
- Is there a way to get value of a private property of a class in another class?
- What is the difference between “= =” and “= = =” operators.
- What is the meaning of a final class and a final method?
- What is
::class
?- used to return full qualified name of the class including namespace.
- Name aggregates methods of query builder.
- What are the factories.
- How to listen for model events.
- How to register observer.
- How to define relationships.
- Name any 5 laravel facades.
- Define custom intermediate table for many to many relationship. link
- What is N+1 query problem? || What is eager loading?
- What is rate limiting?
- Name any 5 laravel packages.
- Explain package.
-
What are the other commands to know the structure of a table using MySQL command?
-
What is SQL injection? and how to prevent it?
-
What is the difference between execution time of the left join and inner join.
-
How we use ceil() and floor() function in PHP?
-
How to redirect https to HTTP URL and vice versa in .htaccess?
Redirect https to http
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Redirect http to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
-
What are Traits?
-
What is the interface?
-
What is abstract class? and abstract method?
-
What is the difference between abstract class and interface?
-
Can we have non abstract methods inside an abstract class?
-
Is typecasting supported in PHP?
-
Does PHP support variable length argument functions?
function add(...$num) {$sum =0; foreach ($num as $n) { $sum += $n; } return $sum;} add(1,2,3)
- How can you get the IP address of a client in PHP?
$_SERVER["REMOTE_ADDR"];
-
What is named arguments and how to use it?
-
What is Null safe Operator?
-
What is dependency injection in Laravel ?
-
How to enable query log in Laravel?
-
What is N+1 query problem?
-
Are migrations necessary in Laravel?
-
How to cache views,routes , configs etc in Laravel? How to clear them? how to clear them all at once?
-
Is there any way to execute some code when model is saved or updated? How to listen for model events. ? what is the observers?
-
Define custom intermediate table for many to many relationship. link
-
What are the accessor and mutator in Laravel?
-
What are the available validation rules in Laravel?