Hi hope someone can help me with the folowing
i have a string with a few words i want to delete some words before the string and uppercase the first letter from the string that over.
$achternaam = "van der hurk";
$common_words = array("van", "der", "de");
$achternaam = str_replace($common_words, "", $achternaam);
echo ucfirst( strtolower( $achternaam ) );
if i echo $achternaam then the ucfirst dosn't work.
with that code.
Can someone help me