An explode is the process of converting the characters of the string into smaller pieces. A string is the sequence of characters with some size limit.
The string which you want to explode can be a sentence which you can break into some parts which can be smaller or some combination of characters.
We can use PHP explode function to convert a string of characters into an array.
explode(String $delimiter, String $string, int $limit );
$string = "Foo Bar PHP"; $array = explode(' ', $string);
Array ( (https://answeropedia.org/en/0) => 'Foo' (https://answeropedia.org/en/1) => 'Bar' (https://answeropedia.org/en/2) => 'PHP' )
The question has no categories yet.add Login to add categories
Учитель русского языка и литературы
Answeropedia is like Wikipedia, only for questions and answers. You ask a question and get one complete, comprehensive and competent answer from the community.