Dev0ps
210
6
Laravel

how to add " - " if word is bigger than 20 characters.

Posted 3 months ago by Dev0ps

i use

wordwrap ($text, 20 , "-", true);

its work fine but it adds " - " for every new line as well

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.