Универсальная база знаний LMS Wisdom System Wisdom Tree MAIN My Profile

PHP Advanced

by #Alex Torrison

Parts / Составляющие / Child

(::) Scope resolution operator

For access to class methods

Doctrine ORM

ORM like Object Abstraction before DataBase Main advantage: Work with any Database Use DQL

Interfaces in php

For Must have methods

Make decision about create new object or make complex procedure

More 2 repeat - New object More 5 lines logic - New object Important business process logic - New object

mb_ functions for UTF-8

In UTF-8 some symbols have 1 byte (English) and others often have 2 bytes and this a big problem for some functions like strlen()

PDO

Manual: http://php.net/manual/en/book.pdo.php Query Prepare Execute Exceptions Fetch Drivers

PHP Cache systems

Create cache Flush cache Cache parts

PHP cURL

For send Network requests

PHP Debugging

Echo in Code Show all vars, functions, classes, files

PHP Multitasking sleep solution

sleep() for run other processes while run one complex process

PHP templating systems

Шаблонизаторы

PHPUnit

Asserts List of quality indicatiors

Suffix and Prefix for variables and function names in under_score style

- _arr, _row, _res, _obj, etc. - get_, set_, add_, etc,

Trait

Part of class for multiple usage

under_scroe, CammelCase and Hybrid_styles of variables and function names

All ways is good, but under_scroe - the most EASY for usage !!!

Этот объект часть других / Parent