1.I wnat to get the data(format:text) from database 2.put them into <td>..</td> 3.inside the <td> must has 4 rows(30 character/per row) I try to use substr("$data",0,120),thus if it has break(\n) in $data, it must exceed 4 rows How can I solve ?
try eregi_replace()