//find last space within length $last_space = strrpos(substr($input, 0, $length), ' '); $trimmed_text = substr($input, 0, $last_space);

Useful links

LIBRARY

 

The ERN-RND is a European Reference Network established by the EU to support patients and families affected by rare neurological diseases (RND) which requires much specialised knowledge, treatment and resources. http://www.ern-rnd.eu/

See also: ERN-RND Diagnostic Flowcharts