preg_replace and date

t3st12345

New Member
I want to remove all \[code\]-\[/code\] and \[code\]/\[/code\] characters in a date string. Can someone give me a hand?Here is what I have but it doesn't work.\[code\]preg_replace('/','',$date);preg_replace('-','',$date);\[/code\]Also, is there a way to group these two expressions together so I don't have to have 2 preg_replaces?
 
Back
Top