FANDOM


A function that splits a string into an array

Arguments Edit

void explode ({{{params}}})

Argument Inclusion Edit

  • Seperator - the character used to split the array

Examples Edit

Example 1: (example description) Edit

 <?php
 $array = explode('|', 'hello|hi|yo');
 print_r($array);
 $limitarray = explode('|', 'hello|hi|yo', 1);
 print_r($limitarray);
 ?>

Output Edit

Array(
  [0] => hello
  [1] => hi
  [2] =>yo
)
Array(
  [0] => hello
  [1] => hi|yo
)
For more details on this function, visit its entry in the php manual.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.