https://github.com/ovr/php-backend-questions
https://github.com/ovr/php-backend-questions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ovr/php-backend-questions
- Owner: ovr
- Created: 2016-02-01T18:03:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-09T18:47:10.000Z (over 9 years ago)
- Last Synced: 2025-01-13T09:08:31.662Z (5 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Inverview questions for PHP Backend Developer [RU](./RU.md)
===========================================================# Общие о PHP
#### 1. Describe all PHP's types.
#### 2. What is a "callable"? Write all allowed values for it.
#### 3. Write down all supported cycles structures
#### 4. Write all magic methods.
#### 5. Что такое Closure? И как работает?
#### 6. Когда методы __construct и __deconstruct будут запущены?
#### 7. Что значит “$a = &$b“?, и как работает этот оператор?
#### 8. Что такое "GC"?
#### 9. Что такое dependency injection? Зачем это нужно? Как это относиться к Composition?
#### 10. Что за рассширение "PDO"?
#### 11. Что такое "ZTS"? Поддерживает ли PHP многопоточность из нутри (в ядре)?
# ООП
### 1. What doest it mean OOP?
### 2. Describe the difference between Public, Protected, and Private.
### 3. What is a "class" and "object"?
### 4. What late "static" call is needed?
### 5. What’s the difference between "self" and "this"?
### 6. Why abstract class is needed? What is not allowed for abstract class?
### 7. Why interfaces is needed?
### 8. What is a "trait"? Why is it needed?
# Code Snippets
### 1. What does it output?
```php
class A extends stdClass {
}$a = new A();
$a->property = 1;$b = $a;
$a->property = 2;var_dump($a);
var_dump($b);
```Is it a same objects? How to get hash of objects?
### 2. What will be caused?
```php
$a = null;
$a->property = 12345;
var_dump($a);
```# Networking
## HTTP
### 1. What is a "HTTP"? Is a binary or plain protocol? What is a difference from "HTTP" AND "HTTPS"?
### 2. What is a "gzip"?
### 3. What is a "ETag" mechanism?
### 4. What is new HTTP 2.0?
# Internal
### 1. What is a "zval"? What is a "zend_value"? What is a union for structure?
### 2. Explain how is it possible "casting variables"? Write it down an example?
### 3. How is it working unary plus and unary minus?
### 3. Arrays? HashTable? What is a complexity of getting element from HashTable? How iteration is working in HashTable?
# Redis
### 1. Is it a persistent db?
### 2. Describe all supported types.
### 3. How to clear 2 database by redis-cli? And how to clear all databases?
### 4. How to get first 10 element(s) from list?
# Databases
## Main questions
### 1. What is a partitioning?
## PostgreSQL
### 1. What is a "hstore" type? For example We are having users table with meta column (hstore type) - How to set value in meta column?
### 2. What is a "json" type? What is a "jsonb" type? What is a difference between this types? How to cast any type to json?