i have a one string of 75 charater and it display in 3 line how i display in 3 line in php pl help
+2
A:
If I understood the question correctly you are looking for wordwrap
<?php
// a string with 75 characters
$x = str_repeat('x', 75);
echo wordwrap($x, 25, '<br />', true);
edit: if your string contains whitespace wordwrap() might break the string into smaller pieces.
Then you need something like str_split.
<?php
// a string with 75 characters including spaces
$x = str_repeat('x y', 25);
echo join('<br />', str_split($x, 25));
VolkerK
2009-07-29 09:46:33
thanks a lot dear.i have done mu job
mehul
2009-07-29 12:19:13