Benim içeriğinde "\ [" bulmaya çalışırken herhangi bir sonuç alamadım. Ben bu modeli kullanın:
preg_replace('/\\\[/', $content, $matches);
Ne benim desen daireler yanlış? Teşekkür ederim.
Güncelleyin. Benim hatam, ben demek preg_match_all
.
preg_replace
is replacing all found matches. Use preg_match
for the first match and preg_match_all
a> yerine tüm maçları almak için:
preg_match_all('/\\\[/', $content, $matches);