Here's my favourite way to prepare french beans (also known as green beans and squeaky beans, according to Wikipedia).
150g french beans, washed, ends trimmed and sliced diagonally
1/2 onion, diced
1 red chilli, sliced
salt to taste
Sauté the onion and chilli in a spoonful of oil until nearly caramelised in a frying pan. Add the beans, season well and stir well. Leave it on medium heat until the beans are cooked, it should take about five minutes. Make a little well in the pan, add a splash of oil and break the egg into it. Leave it for a minute before stirring the beans over the egg. Works well as a great side dish to almost anything you're having.