Hi Jacqueline,
on rootsireland.ie there are 17 William Foxes born 1790 + - 10 years in all counties.
Do you know where in Philadelphia Charles was born? There are some public member trees on ancestry that may have William and the name of Charles's mother that will help to narrow the options down.
Col