Hello,
I have
Array ( [1] => 50 95 [4] => 25 40 )
I need to check that 50, 95, 25, 40 (each) is not over a set value, e.g. 110
How can I make those values become
$new = array([1] => 50 [2] => 95 [3] => 25 [4] => 40);
so I could do
foreach($new as $v)
{
if($v > $length)
{
// do whatever
}
}
or is there a better way to do it?
Thank you