Start Free Trial
Log in
glynco
asked on
php string convert
I need to convert a string from 170652 to 17:06:52
ASKER CERTIFIED SOLUTION
Kiran Sonawane
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How it works
Start Free Trial
shobinsun
$value2 = "170652";
$words2 = str_split($value2, 2);
print_r($words2[0].':'.$wo
rds2[1].':
'.$words2[
2]);
$words2 = str_split($value2, 2);
print_r($words2[0].':'.$wo