Seems to be a good suggestion to me. Probably it would be better to submit a bug report, so we will take care of this, and won't forget.
Goba
Curt Zirzow �rta:
hello,
I'm not sure where the best place to post a fix in the documentation. Should I attach a note to the documentation or submit a documentation bug at bugs.php.net?
btw, I've been considering joining the php-doc team. I'm just curious if you guys are in need for another person? At this point I've just been poking around the documentation system and seeing how every thing is done before committing myself.
The documentation error is as follows:
function wordwrap:
---- Example 1: $text = "The quick brown fox jumped over the lazy dog."; $newtext = wordwrap( $text, 20 ); echo "$newtext\n";
Example 1 output:
The quick brown fox
jumped over the lazy dog.
---
This is rather misleading to new users they seem to be expecting their output to be shown with carriage returns in html (since php defaults with text/html mime-type.) Perhaps using a <pre> tag around output:
echo "<pre>$newtext</pre>"
Or using the break parameter in the function:
$newtext = wordwrap( $text, 20, '<br>');
This applies to both example 1 and 2.
Thanks, Curt
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
