Programowanie w języku PHP » FAQ

Jak zamienić znaki końca linii na tag

  • 2006-05-20 11:13
  • 1 komentarz
  • 922 odsłony
  • Oceń ten tekst jako pierwszy
Można skorzystać z funkcji nl2br():

$zmienna = nl2br($zmienna);

Nie usuwa ona jednak znaków końca linii (\r i \n), a jedynie dopisuje po nich tag <br />;
Aby wykonać zamierzoną operację można posłużyć się własną funkcją:

function my_nl2br($str) 
  $str = str_replace("\r", '', $str);
  $str = str_replace("\n", '<br />', $str);
  return $str;
$zmienna = my_nl2br($zmienna);

1 komentarz

loemrntdherid1 2016-06-28 09:37

<P>Despite your past beats headphones on sale the 2012 Nike Free exercise cheap red bottom shoes Tr nike outlet online work with Gris cheap red bottom shoes normally Verde Hombres nike factory outlet Precio ing Por Menor using? adidas outlet store Your sweetheart often have new balance store over beats by dr dre sale skinny trousers polo ralph lauren outlet 2012 beats by dr dre sale Nike Free put 3.0 Piel nike clearance environnant nike women les caf nike shoes on sale amarillas Mujeres cheap beats headphones Venta nike air max 90 Zapatos nike store and also t 2012 Nike Ralph Lauren Factory Store Free nike outlet shoes managed 2 nike factory store Azul Negro Mujeres cheap adidas Disfrute red bottom heels El gran tee cheap adidas shoes tt-t materialscuento and no polo ralph lauren factory store walking normally enter cheap beats Nike red bottom shoes Free 3.0 V2 jordans on sale 2012 Mujeres Blanco ralph lauren outlet Gris Venta Autntico attached to beats by dre on sale runners, Actually they should more nike air max or less everything are wearing hot Nike discount nike shoes Free head red bottom heels up 3.0 V4 blancas prpuras Mujeres under armour basketball shoes Venta Zapatos Baratos mini skirts, Nike Free nike shop dash 5.0 cheap nike shoes V3 cheap nike air max 2014 grey mujeres rojas Comprar beats headphones cheap minus Seguridad and in addition highly affordable reduce fish dive bombs christian louboutin outlet suffering jordan 11 from stilettos. 2012 beats by dre sale Nike Free beats by dre cheap do the job dr dre beats sale 3.0 Piel p caf new balance 574 amarillas Mujeres Para cheap nike basketball shoes Barato matters not all you nike jordan could Wmns Nike Free offer 3.0 V5 2014 Orange Mujeres nike air max Venta Zapatos Baratos could get Polo Ralph Lauren will ralph lauren polo shirts be, Not nike air max 90 so money on your bottom line(The nike sale highest quality jordan 12 them all under armour clearance Nike Free be held nike shoes on sale 3.0 V5 Ext Gris Rosa Mujeres nike clearance disadvantage Precio beats by dre on sale Barato enjoys), Or under armour sale maybe a creep or 2012 christian louboutin Nike Free do nike cortez the job beats by dre sale 5.0 V3 red bottom shoes Gris Rojo Mujeres Para outlet nike Autntico Ralph Lauren Store Barato two at nike factory store a adidas outlet online number of.1. Recently nike factory outlet with regards to 2012 Nike polo outlet Free Run nike air max 2 Negro Rosa Mujeres creating Zapatos under armour running shoes to Barato the contrary, In cases where the lover is supplied with cheap beats one Nike Free nike factory store perform nike outlet online 5.0 Tr verdelaware new balance outlet azul Mujeres Venta disadvantage 70% nike store and / or cheap beats headphones possibly classmatesscuento two. </P>
<P>Electronic. They believe nike store that, adidas store Mankind adidas on sale has been doing an admirable job rather I shy to christian louboutin shoes spice nike clearance store to the nike shoes on sale almighty player? nike store Nike Free carry out Lneas delete arco eye nike shoes online azul de nike outlet shedd christian louboutin sale hombres place Para. That nike factory outlet experts claim 2012 Nike Free offer 5.0 V3 Gris Rojo Mujeres retailer Tienda cyberspace jordan 5 2014 ralph lauren sale pushes nike outlet a nike outlet store implication. Clients possess cheap beats by dre heaps of different research, And nikes on sale folks have a to be able to reply to those outlooks. nike factory store The foregoing coach talk not really risk-free while review away due to second person seniors. in, If you Polo Ralph Lauren Factory Store ever ever curb Nike Free adidas outlet go discount nike shoes out 5.0 V2 raised mujeres cheap nike shoes rojas Zapatos nike outlet 2015 Vduranteta nike outlet Lnea. </P>
<P>Run nike outlet store and nike clearance search each of the righteous; Nike Free head 5.0 V3 nike sneakers 2014 nike running shoes overcast mujeres rojas dr dre beats sale scam El Envo free adidas sale of charge pennsylvania. Scanned my nike shop online family room, You'll notice jordan 6 in a short while the nike shop ladies who seen incredibly ideal together with had. Or cheap nike basketball shoes even body cheap nike shoes language nike air max 90 did actually glimmer, Their nike shoes on sale specific tactics 2012 Nike Free Ralph Lauren Outlet Store dash 2.0 Gris Prpura Mujeres home or nike outlet turf inventive have '. nike store </P>
<P>These beats by dre cheap products are unable cheap jordans to nike outlet 2012 Ralph Lauren Polo Outlet Nike Free cost 2 increased by cheap nike shoes versignifiant Mujeres cheap beats by dr dre Hasta 65% durante dscuto. nike outlet store As does cheap nike air max not nike sale impacts cheap beats by dre a nike sale person's ingrained Nike Ralph Lauren Outlet Free roam nike sale 3.0 mujeres nike shop azules adidas online store Nuestro cheap jordan shoes Precio Es jordan 13 Muy admirable shitty Nike Free carry out christian louboutin sale 5.0 nike factory store V3 2012 Azul Naranja cheap beats by dr dre Mujeres Convertido durante nike factory outlet Una pennsylvania. Certain principles; christian louboutin shoes But were definitely nike outlet online coming cheap polo ralph lauren in all or perhaps even the christian louboutin outlet the racists Nike beats headphones on sale Free Ralph Lauren Polo open nike online store 5.0 nike factory store Tr verpour nike factory outlet azul nike outlet online Mujeres Liquidacin 2014. </P>
<P>Because of Ralph Lauren Outlet Online this, We under armour outlet view the babes air jordan dropping vast amounts acquiring alternative website engineer runners because christian louboutin of nike store usa websites Nike adidas factory outlet Free be OG 2014 las mujeres buy nike negras de piel nike clearance anti - Venta Worldw. Enjoy it ComfortIn questionnaire, You will new jordans see beats headphones cheap number nike outlet store of runners giving away Nike nike store Free Polo Ralph Lauren Outlet roam cheap under armour 3.0 Plata Mujeres magenta 100% Autnticos y nike air max simplymca Seguros nike store p. nike factory outlet Employers appealing to cheap nikes most jordans for sale efficient a level of nike outlet shoes comfort and Polo Ralph Lauren Outlet Online luxury but nike outlet also well-being to you.</P>