Answers for "explode php exploit"

PHP
27

php explode

$colors  = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Posted by: Guest on June-14-2019
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
0

explode in php

<?php
$str = "Hello world. It's a beautiful day.";
$split = explode(" ",$str);
$hello = $split[0];
$world = $split[1];
?>
Posted by: Guest on August-13-2021

Browse Popular Code Answers by Language