Answers for "which method can be used to access all the values of explode function array in php"

PHP
1

h:i:s explode in php by ":"

$duartion = explode(":","12:23:34");
$duration_hour = $duration[0];
$duration_minute = $duration[1];
$duration_second = $duration[2];
  
echo $duration_hour." ".$duration_minute." ".$duration_second;
Posted by: Guest on March-11-2021

Code answers related to "which method can be used to access all the values of explode function array in php"

Browse Popular Code Answers by Language