Add $prepend to the start of first line or all lines of given $string

string:prepend(STRING $string, STRING $prepend, BOOL $multiline=FALSE) : STRING

string:prepend('sed','hi ')
#=> "hi sed"

$multiple_lines = "this 
that
other"
string:prepend($multiple_lines,'* ', true)
#=> "* this\n* that\n* other"

Copyright ©2013-2022 SunSed®. All rights reserved.