PHP: String biçim karakteri değiştirmek ve eklemek

0 Cevap php

Bu kodu vardır:

$array[] = "<b>  FLYDANNA&reg; HEADWRAP  </b>     <ul>  <li type=\"circle\"><i>  Sensational headwrap made from 6 pieces of fabric to fit the contours of your head perfectly  </i>  <li type=\"circle\"><i>  Strong yet lightweight cotton wrap can be folded up and stored almost anywhere-;pocket, purse, backpack ... you name it!  </i>  <li type=\"circle\">";

Ben, tüm html etiketlerini kaldırmak aşırı boşluk kaldırmak ve son sermaye sözcüğünden sonra bir çift çizgi eklemek istiyorum. Ayrıca, her </li> etiketinden sonra ben bir süre katacak.

Çıkış olmalı bu yüzden dizide koymak önce onu biçimlendirmek gerekir:

$array[] = "FLYDANNA&reg; HEADWRAP-- Sensational headwrap made from 6 pieces of fabric to fit the contours of your head perfectly. Strong yet lightweight cotton wrap can be folded up and stored almost anywhere-;pocket, purse, backpack ... you name it!";

Şimdiden teşekkürler :)

0 Cevap