Pentiums Posted May 2, 2008 Report Share Posted May 2, 2008 $saturs = preg_replace("#$#", "-", $saturs); echo $saturs; $ simbolu neaizvieto ar - simbolu!! kur kļūda? cirus simbolus aizvieto bet tas $ nepatīk!! :( Link to comment Share on other sites More sharing options...
Kristabs Posted May 2, 2008 Report Share Posted May 2, 2008 Konkrētajam piemēram izmanto str_replace(), bez nekādiem patterniem iztiksi un jāknes nevietā. Link to comment Share on other sites More sharing options...
andrisp Posted May 2, 2008 Report Share Posted May 2, 2008 $ ir speciālais simbols (apzīmē stringa beigas). Tāpēc tas ir jāeskeipo ar \. Link to comment Share on other sites More sharing options...
Recommended Posts