Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
$content = preg_replace('#<esi\:remove>[^<]*</esi\:remove>#', '', $content);
protected $testArray = [
'testKey' => 'testValue',
]
Второе — это настроить под себя Code Style инспекции, чтобы сфокусироваться на других сообщениях.
0 === strpos($method, "get") иpreg_match('/^get/', $method)Do not use preg_match() if you only want to check if one string is contained in another string. Use strpos() or strstr() instead as they will be faster.
/get/ и /^get/?
Статический анализ кода в PHP: регулярные выражения