will Posted June 7, 2004 Report Share Posted June 7, 2004 eu gostaria de saber se é possivel localizar em um texto a palavra "http" e automatiamente trocar !?????Alguém sabe isso ? Quote Link to comment Share on other sites More sharing options...
0 ffiction Posted June 7, 2004 Report Share Posted June 7, 2004 $texto = $_GET['texto']; eregi_replace('ptth','http',$texto); Quote Link to comment Share on other sites More sharing options...
0 Illidan Posted June 7, 2004 Report Share Posted June 7, 2004 Acho que o que ele tá querendo é inverter a ordem dos caracteres de uma string, certo?Se for, utilize a função strrev();Falou! Quote Link to comment Share on other sites More sharing options...
0 Fabyo Posted June 7, 2004 Report Share Posted June 7, 2004 Ou faz assim:dai ele vai trocar só a palavra escolhida e não todas$http = ereg_replace("[http]","ptth",$http); Quote Link to comment Share on other sites More sharing options...
0 Guest - Carlos - Posted June 8, 2004 Report Share Posted June 8, 2004 Gostei Fabyo não sabia dessa funcao dahora Quote Link to comment Share on other sites More sharing options...
0 will Posted June 8, 2004 Author Report Share Posted June 8, 2004 obrigado mesmo galera Quote Link to comment Share on other sites More sharing options...
Question
will
eu gostaria de saber se é possivel localizar em um texto a palavra "http" e automatiamente trocar !?????
Alguém sabe isso ?
Link to comment
Share on other sites
5 answers to this question
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.