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


i baked on cake bake , entering values on local host in application. name of value want retrieve php script temperature. how can value?

here information laying behind application:

[usedbconfig] => default

[usetable] => temperature_readings [id] => 32 [data] => array     (         [temperaturereading] => array             (                 [temperature] => 15                 [location_id] => 5                 [created] => 1437572170                 [id] => 32 

that temperature value, 15, variable want use in php script.

you can access temperature this:

$temperature = $array['data']['temperaturereading']['temperature']; echo $temperature; //returns 15 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -