Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php slice string by character

explode(separator, OriginalString, NoOfElements)

or 

str_split(string $string, int $length = 1): array

string
The input string.

length
Maximum length of the chunk.
 
PREVIOUS NEXT
Tagged: #php #slice #string #character
ADD COMMENT
Topic
Name
1+2 =