IT WAS a dangerous night for Philly cab drivers.

The 40-year-old man who was injured in a carjacking by a woman in Crescentville Tuesday night was a taxi driver working for Yellow Cab, police said yesterday.

That incident occurred several hours before the slaying of taxi driver Hafiz Salman Sarfaraz at 12:30 a.m. yesterday in West Philadelphia.

The driver in the Crescentville incident, who was not identified, went to pick up a fare at McDonald's on Adams Avenue near Howell Street about 7 p.m. Tuesday. A woman got into the vehicle and put a knife to his throat, demanding the car, police said.

The cabbie grabbed the knife and pulled it away from the woman, who then allegedly pulled a handgun. The driver let the woman leave with the car, a 2010 Chrysler 300 that the cab company dispatches as a luxury service, and he called police.

Police said Toni Williams, 30, of Montour Street near Garland in Olney, was arrested in Abington later Tuesday night when officers stopped her in the Chrysler, which had been reported stolen.

Police said they recovered a bloody, 12-inch knife on the front seat of the vehicle, but did not find the gun.

Williams was charged with aggravated assault, robbery and theft and weapons offenses.

The 40-year-old driver was treated for cuts to both hands and released from the hospital.

- Solomon Leach