hi is there a way of doing a str replace to look twice like at moment i have if find space replace with "-" PHP Code: Code: [Select] .str_replace(' ','-',($row['model'])) PHP: is there a way i can do if find twice $row['model if find space " " replace with "-" also if find "i30" replace with "10" is there a way i can try find another like if find " " replace with "-" also if find "130" replace with hello world?? thanks in advance
Hi, I guess you want something like: $find = array(' ', 'i30'); $replace = array('-', '10'); $result = str_replace($find, $replace, ($row['model'])); PHP: