Answers for "explode to string php"

PHP
46

php explode

$colors  = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Posted by: Guest on June-14-2019
2

explode example in php

$str = "Hello, kinjal, how, are, you";

    // it will convert string to array
    $s1 = explode(",", $str);
    echo "<pre>";
    print_r($s1);
Posted by: Guest on September-29-2021
4

php explode end

$url = explode("/", URL::current());
echo end($url);
Posted by: Guest on July-08-2020
2

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

Browse Popular Code Answers by Language