- Com a função abaixo, com certeza vai ajudar e muito.
<?php
echo "<form name='form' method='post' action=$_SERVER[PHP_SELF]>";
echo "<textarea cols='80' rows='20' name='texto'></textarea><br>";
echo "<center><input type='submit' name='sent' value='executar'><br></center>";
echo "</form>";
function quebra($string,$size){
$length = strlen($string);
for($i=0;$i < $length ;$i+=$size){
$temp .= substr($string,$i,$size)."<br>";
} //for
return $temp;
} //function
$string = quebra($_POST[texto],12);
echo $string;
?>
Um comentário:
Olá,
Por acaso vc saberia como incluir quebras de liha nessa sequencia de strings? Tentei de várias maneiras, mas em sucesso.
, \n... até wordwrap antes de garavar no bd.
$mobilephoneString = $this->l('Mobile Phone Number:').' '.$mobilephoneNumber.'\n';
$mobilephoneString = $this->l('Bank Name:').' '.$mobilephoneBank.'\n';
$mobilephoneString = $this->l('Payment Method:').' '.$mobilephonePMethod1;
$mobilephoneString = $this->l('Payment Method:').' '.$mobilephonePMethod2;
//$mobilephoneString = wordwrap( $mobilephoneString, 30, "
", 1);
$mobilephoneString = pSQL($this->bf->encrypt($mobilephoneString), true);
Obrigado, belo blog
Postar um comentário