dev-master
9999999-dev
MIT
The Requires
- php >=5.6.2
The Development Requires
by Nexuslink Services
v1.0.0
1.0.0.0
MIT
The Requires
- php >=5.6.2
The Development Requires
by Nexuslink Services
Wraps a string to a given number of characters using a string break character., (*1)
If you use composer, you can add this package by running, (*3)
composer require galiteintechnologies/word-wrap-helper
Default values are $width = 75, $break = '\n' and $cut = false., (*4)
<?php use WordWrapHelper\WordFormatter; $wordFormatter = new WordFormatter(); $content = "Lorem Ipsum is simply dummy text of the printing and typesetting industry."; $result = $wordFormatter->wrap($content, 30, '-<br/>'); echo $result;
Lorem Ipsum is simply dummy-<br/>text of the printing and-<br/>typesetting industry.
Pull requests are always welcome., (*5)
MIT
MIT