Skip to main content


Showing posts from 2017

Laravel Interview questions and answers

1. What is LaravelLaravel is free open source “PHP framework” based on MVC Design Pattern .
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.

2. List some official packages provided by Laravel.Below are some official packages provided by Laravel Cashier :Laravel Cashier provides an expressive, fluent interface to Stripe’s and Braintree’s subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle coupons, swapping subscription, subscription “quantities”, cancellation grace periods, and even generate invoice PDFs.Read More Envoy :Laravel Envoy provides a clean, minimal syntax for defining common tasks you run on your remote servers. Using Blade style syntax, you can easily setup tasks for deployment, Artisan commands, and more. Currently, Envoy only supports the …

Design Patterns PHP

DesignPatternsPHPThis is a collection of knowndesign patternsand some sample code how to implement them in PHP. Every pattern has a small list of examples (most of them from Zend Framework, Symfony2 or Doctrine2 as I’m most familiar with this software).
I think the problem with patterns is that often people do know them but don’t know when to apply which. Patterns The patterns can be structured in roughly three different categories. Please click on the title of every pattern’s page for a full explanation of the pattern on Wikipedia. 1. Creational1.1. Abstract Factory1.2. Builder1.3. Factory Method1.4. Multiton1.5. Pool1.6. Prototype1.7. Simple Factory1.8. Singleton1.9. Static Factory2. Structural2.1. Adapter / Wrapper2.2. Bridge2.3. Composite2.4. Data Mapper2.5. Decorator2.6. Dependency Injection2.7. Facade2.8. Fluent Interface2.9. Flyweight2.10. Proxy2.11. Registry

MySQL 5.6 Reference Manual

Zend Certified PHP Engineer Exam: 200-550

What is the output of the following code? echo '1' . (print '2') + 3;
A. 123
B. 213
C. 142
D. 214
E. Syntax error
Answer: D
What is the output of the following code?
$a = 3; switch ($a) {
case 1: echo 'one'; break; case 2: echo 'two'; break; default: echo 'four'; break; case 3: echo 'three'; break;
A. one B. two C. three D. four
Answer: C

What is "instanceof" an example of?
A. a boolean
B. an operator
C. a function
D. a language construct E. a class magic
Answer: B QUESTION: 4 Which of the following may be used in conjunction with CASE inside a SWITCH statement? A. A scalar
B. An expression 
C. A boolean
D. All of the above
Answer: D
What is the output of the following code? $a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
A. abc B. cd C. Od
Answer: B

Which of the following are valid identifiers? (Choose 3)
A. function 4Y…