I'm trying to remove the '-' from a string and capitalize the word before the '-'. For example:
fraser-ultra-2019 becomes FraserUltra2019
Right now I can only remove the '-' with str_replace but not sure how to capitalize it.
$string = fraser-ultra-2019
str_replace("-","",$string) // fraserultra2019