SORU
24 Kasım 2011, PERŞEMBE


Belirtilen konumuna Ekle dize

Bunu yapabilecek bir PHP işlevi var mı?

Strpos bir alt pozisyon almak için kullanıyorum, ve sonra bu konumu bir dize eklemek istiyorum

CEVAP
26 Temmuz 2013, Cuma


$newstr = substr_replace($oldstr, $str_to_insert, $pos, 0);

http://php.net/substr_replace

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • BSA

    BSA

    9 NİSAN 2012
  • Dellbear816

    Dellbear816

    4 Mart 2008
  • Theodore Leaf

    Theodore Lea

    29 AĞUSTOS 2006