Negin Nickparsa
2014-08-03 23:10:12 UTC
I am learning string functions in php, I couldn't understand wordwrap
although I read first examples.
I have this example in the book:
$text = "able osts indy";
$newtext = wordwrap($text, 1, "c",false);
echo $newtext;
result is ablecostscindy
I understand that by adding </br> or </n> we are breaking the string every
with number so is the able the zerost word and the osts first word and so c
is added there or what? I need to clarify this in my mind. thank you.
Sincerely
Negin Nickparsa
although I read first examples.
I have this example in the book:
$text = "able osts indy";
$newtext = wordwrap($text, 1, "c",false);
echo $newtext;
result is ablecostscindy
I understand that by adding </br> or </n> we are breaking the string every
with number so is the able the zerost word and the osts first word and so c
is added there or what? I need to clarify this in my mind. thank you.
Sincerely
Negin Nickparsa