In a small bowl, combine the sugar, water, soy sauce, fish sauce, and oyster sauce and stir to combine.
Mince or finely chop the garlic and shallot. Rinse the beans, if using, and cut into 1 inch pieces.
Cut the Thai chilies into small pieces and discard the stems and seeds.
Add about 2 tablespoons of cooking oil to the wok or pan and heat the wok or heavy bottomed pan over medium heat.
Add the garlic and shallots and stir fry for about 1-2 minutes, being carful not to burn.
Add in the minced or ground meat and cook until just browned, breaking up the meat as it cooks.
Add the beans, if using, and cook for 1-2 minutes.
Add in the cooking sauce and stir to combine. Cook for 2-5 minutes, or until most of the liquid is absorbed.
Remove the wok on pan from the heat and add in the basil. Stir to combine.
If using, fry the eggs in a pan with some cooking oil.
Serve the Pad Krapow warm, over rice and topped with a fried egg.