Lines Matching refs:width
8 $width = 10;
12 // $width arg as negative value
13 echo "\n-- Testing wordwrap() function with negative/zero value for width argument --\n";
14 echo "-- width = 0 & cut = false --\n";
15 // width as zero and cut as false
16 $width = 0;
18 var_dump( wordwrap($str, $width, $break, $cut) );
20 echo "-- width = 0 & cut = true --\n";
21 // width as zero and cut as true
22 $width = 0;
26 wordwrap($str, $width, $break, $cut);
31 echo "-- width = -10 & cut = false --\n";
32 // width as -ne and cut as false
33 $width = -10;
35 var_dump( wordwrap($str, $width, $break, $cut) );
37 echo "-- width = -10 & cut = true --\n";
38 // width as -ne and cut as true
39 $width = -10;
41 var_dump( wordwrap($str, $width, $break, $cut) );
46 -- Testing wordwrap() function with negative/zero value for width argument --
47 -- width = 0 & cut = false --
49 -- width = 0 & cut = true --
50 wordwrap(): Argument #4 ($cut_long_words) cannot be true when argument #2 ($width) is 0
51 -- width = -10 & cut = false --
53 -- width = -10 & cut = true --