Code:
code

$myVar = 'abcdABCD';

$myVar=str_replace('a','', $myVar);

echo $myVar;

result

bcdABCD
The code above replace 'a'.
I like to replace both "a" and "A" at a time.