From 2ee8e560cb704376146948fa44a56af664280c1a Mon Sep 17 00:00:00 2001 From: Pasindu De Silva Date: Wed, 22 Apr 2015 14:25:37 +0000 Subject: [PATCH] Fix bug #64092, Added description and example for parameter "cut" is false and word is long than width. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336614 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/wordwrap.xml | 28 ++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/wordwrap.xml b/reference/strings/functions/wordwrap.xml index 0045d60184..2314022209 100644 --- a/reference/strings/functions/wordwrap.xml +++ b/reference/strings/functions/wordwrap.xml @@ -55,9 +55,10 @@ If the cut is set to &true;, the string is - always wrapped at or before the specified width. So if you have + always wrapped at or before the specified width. So if you have a word that is larger than the given width, it is broken apart. - (See second example). + (See second example). When &false; the function dose not split the word until the end of the word + even if the width is smaller than the word width. @@ -115,6 +116,29 @@ A very long wooooooo ooooord. +]]> + + + + <function>wordwrap</function> example + + +]]> + + &example.outputs; + +