php Convert String into Array

The PHP explode() function splits a string into an array. The first parameter of the explode() function represents the "separator". The "separator" specifies where to split the string.

Array ( [0] => Hello [1] => World! )