andrisp Posted April 12, 2005 Report Share Posted April 12, 2005 nesanaaak preg_replace funkcijai iebarot pareizos regex paternus.. gribu apmainiit stringaa visus ' pret \' .. paliidziet. izmeegjinaajos visaadi, bet nekaa. paldies Link to comment Share on other sites More sharing options...
Kavacky Posted April 12, 2005 Report Share Posted April 12, 2005 addslashes( $string ); Link to comment Share on other sites More sharing options...
Delfins Posted April 12, 2005 Report Share Posted April 12, 2005 nesanaaak preg_replace funkcijai iebarot pareizos regex paternus..gribu apmainiit stringaa visus ' pret \' .. paliidziet. izmeegjinaajos visaadi, bet nekaa. paldies 16232[/snapback] str_replace() Link to comment Share on other sites More sharing options...
blackhalt Posted April 12, 2005 Report Share Posted April 12, 2005 <?php $a="'"; //$a=str_replace("'","\'",$a); // vai $a=str_replace('\'','\\\'',$a); echo $a; ?> Link to comment Share on other sites More sharing options...
Recommended Posts