I have a string like: “volkswage n-golf-gti” **
And I want it to change the string into:
“Volkswage n Golf GTI” (last part completely uppercase)
But I have some difficulties understanding preg_replace.
Right now I have the following code:
Code:
<?php $string = 'volkswagen-golf-gti'; $string2 = ucwords(str_replace('-', ' ', $string)); $string2