i have this string:
$string= " 22 December-28 December 2015";
exist a method in PHP with i can find the word "December" inside $string and changes it with another word ?
i would like a new:
$string= " 22 Dicembre-28 Dicembre 2015";
i have this string:
$string= " 22 December-28 December 2015";
exist a method in PHP with i can find the word "December" inside $string and changes it with another word ?
i would like a new:
$string= " 22 Dicembre-28 Dicembre 2015";
You could use str_replace() function.
Something like this:
$string= " 22 December-28 December 2015";
$string = str_replace('December', 'Dicembre', $string);