sidrs Posted February 6, 2011 Report Share Posted February 6, 2011 Ar kādu funkciju var no postētā teksta izgriezt simbolus ' ; ? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 6, 2011 Report Share Posted February 6, 2011 str_replace(). Quote Link to comment Share on other sites More sharing options...
Rincewind Posted February 6, 2011 Report Share Posted February 6, 2011 $str = str_replace(';','',$str); Quote Link to comment Share on other sites More sharing options...
sidrs Posted February 6, 2011 Author Report Share Posted February 6, 2011 paldies par helpu. a abus var apvienot, vai vairakus šos brīnumus. šitas kauka nesmuki izskatās.. $text = str_replace("'","",$text); $text = str_replace(";","",$text); Quote Link to comment Share on other sites More sharing options...
Rincewind Posted February 6, 2011 Report Share Posted February 6, 2011 a abus var apvienot, vai vairakus šos brīnumus. šitas kauka nesmuki izskatās.. $text = str_replace(array(";","'"), "", $text); vai ereg_replace() Quote Link to comment Share on other sites More sharing options...
sidrs Posted February 6, 2011 Author Report Share Posted February 6, 2011 es atradu šādu risinājumu $simb = array("'", ";", "\""); $text = str_replace($simb, "", $text); Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 6, 2011 Report Share Posted February 6, 2011 Sidrs, tas jau ir tas pats, ko tev Rincewind teica. =D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.