replace caractere

Ai o întrebare legată de PHP? Incercăm să îi găsim soluţie. Sau poate doar vrei să publici un cod interesant.

Moderatori: Zamolxe, Moderatori


rpsetzer
Junior Member
Mesaje: 36
Membru din: Dum Mai 06, 2007 7:19 pm

Mesajde rpsetzer » Mar Ian 29, 2008 8:44 pm

$str=preg_replace('/[^a-z0-9]/i','-',$str);

rolly
PHPRomania Supporter
Mesaje: 25
Membru din: Mie Sep 05, 2007 12:36 am
Contact:

Mesajde rolly » Mar Ian 29, 2008 8:54 pm

mersi mult :) daca ai putea sa-mi si explici ce ai facut acolo ar fi super :)

Avatar utilizator
Quber
Senior Member
Mesaje: 874
Membru din: Mar Iun 27, 2006 8:33 pm
Localitate: localhost
Contact:

Mesajde Quber » Mie Ian 30, 2008 8:09 am

@rolly, shi bafta..!
A man who dares to waste one hour of time has not discovered the value of life.


Înapoi la “Cod PHP”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 28 vizitatori