I have a user input field. It will be a textarea. When user submit the form I want to check if the entered character count is more than 10. If more than 10 I want to split it. Clearly says, if I get a string
$someWords = "Pleasedon'tblowmetopiecesandthis will be a 12345 random.";
Then I want to split this string. Each parts should be maximum of 10 character long. Required result (clean text) should be something like below,
tblowmetop
iecesandth
is will be
a 12345 r
andom
How can I do this in PHP? I have idea about getting count using strlen($string);.