RE: wrapping problem continued

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
Have been given the solution and applied it to the code

<?php  $new_string = wordwrap($row['fname'], 20, "<br />\n");echo 
$new_string; ?>

Why does it not work?

What is the output of the echo statement?

An unwrapped string the same as before.
[/snip]

Because you didn;t follow the instructions on
http://www.php.net/wordwrap ...set the cut (4th parameter of wordwrap

<?php  $new_string = wordwrap($row['fname'], 20, "<br />\n", 1);echo 
$new_string; ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux