andrisp Posted April 12, 2005 Report Posted April 12, 2005 nesanaaak preg_replace funkcijai iebarot pareizos regex paternus.. gribu apmainiit stringaa visus ' pret \' .. paliidziet. izmeegjinaajos visaadi, bet nekaa. paldies
Delfins Posted April 12, 2005 Report 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()
blackhalt Posted April 12, 2005 Report Posted April 12, 2005 <?php $a="'"; //$a=str_replace("'","\'",$a); // vai $a=str_replace('\'','\\\'',$a); echo $a; ?>
Recommended Posts