解析错误:语法错误,意外的'$ country'(T_VARIABLE)

时间:2019-10-16 10:50:51

标签: php

如何使变量在路径内可读?

// First markLine
const markLineAhorro = {
    data: [
      {
        type: 'max',
        label: {
          position: 'middle',
          formatter: params => {
            return `Sólo tienes que invertir: ${params.value.format()} €`
          }
        },
        lineStyle: {
          color: '#212529'
        }
      },
    ]
}

// Second markLine (the one on the top)
const markLineRentabilidad = {
    data: [
      {
        type: 'max',
        label: {
          position: 'middle',
          formatter: params => {
            return `Con tu inversión obtienes: ${params.value.format()} €`
          }
        },
        lineStyle: {
          color: '#212529'
        }
      }
    ]
}

解决了,非常感谢

解决方案:

$country = 'en_PH';
$faker->addProvider(new Faker\Provider\$country\Address($faker));

0 个答案:

没有答案