Dear programmers, please help a newbie.
In the array I indicated people who are taller than Ira in her class, her height is 169, chose these people and brought them to the screen, and now I’m wondering how to calculate and display the amount on the monitor? Help...
code example:
<?php $Ira = 169; $class = array ( 'anton' => 172, 'igor' => 173, 'dasha' => 188, 'dima' => 160 ); foreach ($class as $name => $hai) { if (in_array($hai>169, $class)) { echo $name,'<br/>'; } }