wordwrap(); function
Posted: Wed May 26, 2004 5:22 am
hy,
i use wordwarp function to put a <br> tag, after 53 caracters, becouse i want that any post, that someones do, do not exceed, the limit of the html table...
but the problem is, that if i put 60 "g" caracters, works fine, but if i put 60 "f" caracters, will not work very fine...
my objective is format the text to not, expand the html table...
if i use
this appear a litle table, but if i put helllllllllllllllloooooooooooooooo, the table will expand, and i dont want this to happen, so i need to put a <br> tag, after x caracters, so the table will be with the width that i want... like post for foruns etc...
i use nl2br(); wordwrap(); and the htmlspecialcaracter(); functions, but i still have the problems...
anyone knows a good way to not permite that a html table expands, by having a lot of caracters ???
sorry my english
regards
duk
i use wordwarp function to put a <br> tag, after 53 caracters, becouse i want that any post, that someones do, do not exceed, the limit of the html table...
but the problem is, that if i put 60 "g" caracters, works fine, but if i put 60 "f" caracters, will not work very fine...
my objective is format the text to not, expand the html table...
if i use
Code: Select all
<?php
echo "
<table border=1>
<td>hello</td>
</table>
";
?>i use nl2br(); wordwrap(); and the htmlspecialcaracter(); functions, but i still have the problems...
anyone knows a good way to not permite that a html table expands, by having a lot of caracters ???
sorry my english
regards
duk