Function to replace part of string
-
Hi there,
I am trying to create a PHP function to replace part of the string of a value in a field to export. The values in that field are like “Referência R999999” and I just want to remove the “Referência ” part and let the rest as it is. I tried this but doesn’t work:
function corrige_referencia($ref) {
str_replace(“Referência “,””,”$ref”);
}Any help, please?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Function to replace part of string’ is closed to new replies.