|
Main /
PHP-TipsWordwrap
The $newstring part returns only the text from BEFORE the quotes. In this case a new line, so only the first line is returned.
<td colspan="2" style="color:red"><b>Issue Reference: <a href="hsl:hotissue?issueref=<?echo $issueref;?>"><?echo $issueref;?></a> <?echo $newstring ?> </b> <?echo "</b><br><PRE> ".$newtext;"</PRE>" ?></td> PHP and managing a string from a DB echo sprintf("%02s%02s%02s%02s", substr($call_logdate,3,3),substr($call_logdate,0,2),substr($call_logdate,5,5),substr($call_logdate,10,18)); |