Php Replace Char In String Using C