Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2085 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  [PHP] forcer le \n tous les x carractere dans un textarea

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[PHP] forcer le \n tous les x carractere dans un textarea

n°149262
j-'-r
Sans horraires fixe
Posté le 02-06-2002 à 14:22:48  profilanswer
 

comment forcer le \n tous les x carracteres dans  
un textarea ?


---------------
Perdu ? Vous êtes ici : --> *
mood
Publicité
Posté le 02-06-2002 à 14:22:48  profilanswer
 

n°149270
kayasax
Posté le 02-06-2002 à 15:10:00  profilanswer
 

avec ca je pense (msg poste par Sh@rdar ds topic la fonction qui vous simplifie le + la vie :love: )
 
wordwrap --  Wraps a string to a given number of characters using a string break character.  
Description
string wordwrap ( string str [, int width [, string break [, int cut]]])
 
 
Returns a string with str wrapped at the column number specified by the (optional) width parameter. The line is broken using the (optional) break parameter.  
 
wordwrap() will automatically wrap at column 75 and break using '\n' (newline) if width or break are not given.  
 
If the cut is set to 1, the string is always wrapped at the specified width. So if you have a word that is larger than the given width, it is broken apart. (See second example).  
 
Note: The optional cut parameter was added in PHP 4.0.3


---------------
All we need is a soul revolution

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  [PHP] forcer le \n tous les x carractere dans un textarea

 

Sujets relatifs
[Important] besoin d'un codeur PHP [ Important][PHP][HTML] Comment récupérer les variables d'un select multiple
[PhP] pitit prob acees les '\' dans un formu...[PHP] boucle question
[PHP] Champ qui n'affiche pas tout ( voir NEW BUG )PHP - array et cookies
[PHP] Probleme avec FOPEN :((PHP) Pb r?cup?ration de variables
Utilisation d'une Librairie Graphique pour PHP/ASP[PHP]effacer une ligne d'un fichier
Plus de sujets relatifs à : [PHP] forcer le \n tous les x carractere dans un textarea


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR