/Smart-Sub-String-in-PHP

A function that takes maximum 30 characters from a string but without cutting the words

Primary LanguagePHP

Smart-Sub-String-in-PHP

A function that takes maximum 30 characters from a string but without cutting the words "Smart substring" A function that takes maximum 30 characters from a string but without cutting the words.

Full description: "Featuring stylish rooms and moorings for recreation boats, Room Mate Aitana is a designer hotel built in 2013 on an island in the IJ River in Amsterdam."

First 30 characters: "Featuring stylish rooms and mo"

Smarter approach (max 30 characters, no words are broken): "Featuring stylish rooms and"

Too Use it Run the Function and with in the Function smartString("Add your Text")