is it possible with php’s wordwrap to add increased indentation each line break to essentially create wordwrapping on an angle?
is it possible with php’s wordwrap to add increased indentation each line break to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understand your question correcly, you would like to produce an output like:
Obviously, replacing
xwith your text.wordwrapbuilt-in function does not support this feature but you still can write your own, with a simple loop. Change the max length on each iteration, and break your initial string (depending on your needs, where you find a space or wherever you want).