in reply to Can you set a character in a string at a given index directly?

See substr. Also, maybe review your course materials that likely cover that function too.

  • Comment on Re: Can you set a character in a string at a given index directly?