Display the drop-down list

explode()

« exp | expm1 »
<?php
$array 
explode (
    
// string $delimiter
    
// string $string
    
  // [int $limit]
);
?>
Result
$array = [
  
=> 'foo',
  
=> '*',
  
=> '1023',
  
=> '1000',
  
=> '',
  
=> '/home/foo',
  
=> '/bin/sh',
]
Examples
#1 explode  (" ",
 
"piece1 piece2 piece3 piece4 piece5 piece6")
#2 explode  (":",
 
"foo:*:1023:1000::/home/foo:/bin/sh")
#3 explode  ("|",
 
"one|two|three|four",
 
2)
See also
implode, mb_split, preg_split, str_split, str_word_count, strtok