I need to truncate a text before encoding it in base64. I try with wordwrap :
$body_wrap = wordwrap($arrayInfo['body'], 150, '\n', false);
Using '\n', '\r', '
', this is not working.
Is there another solution to wrap my text ? Because in HTML, I have big lines that overflow the screen
'` would be a newline, or you have to surround the text by the preformatted ` ` tag. – KIKO Software Oct 06 '17 at 08:42