PHP – Tokenize string
This PHP function will assist in splitting a string based on characters. Example 1: Result: Word=This Word=is Word=an Word=example Word=string Example 2: Result: string(4) “This” string(2) “is” Example 3: Result: [“This”,”is”,”an”,”example”,”string”] [“”,”This”,””,”is”,””,”an”,””,”example”,””,”string”,””] Source: http://www.php.net/manual/en/function.strtok.php