![]() ![]() The example below shows the usage of explode() function. If separator values appear at the start or end of string, said values will be added as an empty array value either in the first or last position of the returned array respectively. ![]() If separator contains a value that is not contained in the string and a negative limit is used, then an empty array will be returned, otherwise an array containing string will be returned. In this way it will play with array elements. When this delimeter character is found in the string, it will show the end of one element of the array and the start of the second element of an array. It specifies the critical points, the points where the string will split. Examples of using the explode() Function in PHP. If separator is an empty string (""), explode() will return false. The separator parameter cannot be empty because it is the boundary string. Returns an array of strings created by splitting the given string using separator string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |