如何检索在本地主机上输入的值以创建条件


How to retrieve a value that is entered on localhost to make a condition

我在cake bake上烤了一些东西,并在该应用程序的本地主机上输入值。我想为php脚本检索的值的名称是温度。我怎样才能得到这个值?

下面是应用程序背后的一些信息:

[useDbConfig] => default

[useTable] => temperature_readings
[id] => 32
[data] => Array
    (
        [TemperatureReading] => Array
            (
                [temperature] => 15
                [location_id] => 5
                [created] => 1437572170
                [id] => 32

温度值,即15,是我想在PHP脚本中使用的变量。

您可以这样访问温度:

$temperature = $array['data']['TemperatureReading']['temperature'];
echo $temperature; //Returns 15