explode function php

The explode() function breaks a string into an array.
Syntax is : explode(separator,string,limit);

Example

<?php
$string1 = "the quick brown red fox jumps over the lazy dog";
var_dump(explode(" ",$string1));
?> 

Output

array
  0 => string 'the' (length=3)
  1 => string 'quick' (length=5)
  2 => string 'brown' (length=5)
  3 => string 'red' (length=3)
  4 => string 'fox' (length=3)
  5 => string 'jumps' (length=5)
  6 => string 'over' (length=4)
  7 => string 'the' (length=3)
  8 => string 'lazy' (length=4)
  9 => string 'dog' (length=3)