composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --prefer-dist yiisoft/yii2-app-basic <path>
composer create-project --prefer-dist yiisoft/yii2-app-advanced <path>
$array=Array
(
0 => 'Куртка Waterproof-01.jpg',
1 => 'Куртка Waterproof-02.jpg',
2 => 'Куртка Waterproof-03.jpg',
3 => 'Куртка Water Mod-01.jpg',
4 => 'Куртка Water Mod-02.jpg'
);
$new = [];
foreach ($array as $el) {
@$new[preg_replace('/[\-0-9]/i', '', $el)][] = $el;
}
echo '<pre>';
print_r($new);
echo '</pre>';
$r = [
0 => 'qwdqwd',
2 => 'qwdqwergerd',
5 => 'wegwegwe'
];
foreach ($r AS $key => $value) {
echo $key . ' ';
}
планирую после изучения нужных фреймворков
yum install yum-plugin-replace
yum replace php-common --replace-with=php70w-common