
|
Home > Code snippets > PHP > Strings > Get first line Get first lineCreated by axiac, last update on 30/10/2008 11:38 Truncate a given multi-line string by returning only a limited length substring from its first line. Add suspension points or other (provided) continuation mark if the string is truncated in-process; the input string is returned as-is if it does not contain new-line characters and its length is smaller than required.
DependenciesNo special requirements are needed by this snippet
By logging in you will be able to:
|
||||||||||||
|
PHPEdit User Community, © 2008 WaterProof SARL
|
||||||||||||