By Tim Jimenez

PHILADELPHIA (CBS) — A Philadelphia police officer is being praised for jumping into action and rescuing an unconscious man from a burning car.

READ MORE: Biden Administration Enacts New Travel Rules Due To Spread Of COVID-19 Omicron Variant

It happened in the Logan section of the city.

Around midnight, police say a 47-year-old man in a Dodge Charger lost control and hit the median at Broad and Wyoming, and then slammed into two parked cars.

Soon, a 39th District officer driving by saw the car was on fire and a man was unconscious inside.

READ MORE: Temple University Parents To Rally Over Safety After Samuel Collington's Death

Chief Inspector Scott Small says the officer pulled the man out before the situation became even more dangerous.

“The vehicle was completely engulfed in flames after the officer was able to get the driver of the car out of the vehicle.”

He is stable after suffering a concussion, cuts and bruises.

MORE NEWS: Philadelphia Police: Man Injured After Being Shot Near Fox Chase Wawa

Police say had the officer not been around the consequences could have been worse, possibly fatal.