- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
- Parse error: syntax error, unexpected ')', expecting ';' in /in/2rYmq on line 7
Process exited with code 255.
<?php
$name = "IPC_IPCamera_13_7_24_9_57_45.jpg";
$parts = explode("_", $name);
for ($i = 0; $i < count($parts), $i++) {
$part = $parts[$i];
if (count($part) == 1) {
$part = "0" . $part;
}
$name .= $part . "_";
}
echo $name;