PHP:Funzione worddrap

La maggior parte dei browser ha la tendenza di mandare a capo in automatico, per eliminare questa fastidiosa funzione ci pensa il codice Php. Con un semplice codice, permette di rendere la stampa a video indipendente, sceglieremo noi quando andar a capo.

?php
$testo = “Scegliamo come formattare i nostri testi grazie a wordwrap” ;
$testo = wordwrap ($testo , 20 , “br /”);
print $testo ;
?

Articoli simili

Lascia un commento

Your email is never published nor shared. Required fields are marked *

*
*

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a