<?php
$price = 501;
$allowed_sms_prices = array(
5,7,10,15,20,25,30,35,39,40,
45,49,50,55,59,60,69,75,79,85,
89,95,100,125,150,175,200,225,250,275,
300,310,315,320,325,330,335,340,345,350,
355,360,365,370,375,380,385,390,395,400,
405,410,415,420,425,430,435,440,445,450,
455,460,465,470,475,480,485,490,495,500
);
while( ! in_array( $price, $allowed_sms_prices ) )
{
$price = $price + 1;
}
echo $price;
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Process exited with code 137.
preferences:
229.71 ms | 404 KiB | 294 Q