即使我设置了环境变量,Reg也无法识别

时间:2019-03-06 05:41:00

标签: reactjs loopback

当我安装npm install -g loopback-cli而不是显示此错误时,我已经设置了环境变量,例如C:\ Python27 \ python.exe; C:\ Program Files \ nodejs \

i

2 个答案:

答案 0 :(得分:0)

$apps = [
    ['name' => 'Fish', 'id' => 2],
    ['name' => 'Chips', 'id' => 1],
    ['name' => 'Sticks', 'id' => 2],
];

$using = [];
foreach ( $apps as $var ) {
    if ($var['id'] == "2") {
        $using[] = $var['name'];
    }
}

echo implode(" and ", $using);

答案 1 :(得分:0)