Log 3582
20/07/2024 2024-07-20 14:43$data = #לידים#;
$numbers = [];
for ($i = 0; $i < strlen($data) – 2; $i++) {
$num1 = intval($data[$i]);
$num2 = intval($data[$i + 1]);
$num3 = intval($data[$i + 2]);
if (($num1 < $num2) && ($num2 < $num3)) {
array_push($numbers, 0);
++$i;
} else {
array_push($numbers, $num1);
}
}
return implode(',', $numbers);