An Australian journalist says it felt like he had been hit in the neck by a cricket ball when a "big, dull thud" knocked him to the ground in a Philippine war zone.

ABC foreign correspondent Adam Harvey had been shot in the neck, with the stray bullet now lodged behind his jaw just inches from his spine.

Harvey was injured on Thursday in Marawi, where Philippine military forces are working to take back parts of the city from Islamic State, news.com.au reports.

"It felt like I had been hit in the head with a cricket ball ... that kind of big, dull thud that hurt, but I didn't black out," Harvey told ABC radio.

Advertisement

"The bullet is still in my neck but luckily it missed everything important and is just lodged behind my jaw."

AAP understands the journalist was hit by a stray bullet, rather than a targeted attack.

Harvey posted a picture to Twitter of an X-ray showing the bullet lodged in his neck, with the caption "Lucky".

He said he initially thought he had been hit by shrapnel in what was considered a relatively safe compound some way away from the fighting.

"We were joking about it a few minutes later but it turned a bit more serious when I saw the X-ray," he said.

Harvey said the Marawi hospital he was being treated in came under attack while he was there, with gunfire heard outside the building.

The journalist's sister, Claire Harvey, told 2GB radio her brother would need surgery, which she hoped would occur in Singapore.

"It looks like this bullet has got him in the gap between the bottom of his helmet and the top of his (protective) vest," she said.

An ABC News spokesman said Harvey was receiving medical treatment for the injury, which was described as not serious.

A video uploaded by Filipino radio station DDZB Super Radyo showed the journalist wearing a neck brace and helmet while being mobbed by local reporters.

"I've just gone to get an X-ray to get it checked out," Harvey said in the video posted on Twitter by the station.

Harvey, who is the ABC's Jakarta correspondent, was within the Provincial Capitol Compound taking photos of evacuees.

It was considered to be a safe zone and he was wearing protective gear.

Less than 24 hours before he was shot Harvey had tweeted how he came across a killing on the drive out of Marawi, which is 830km south of the capital Manila.

"Brutal times in the Philippines," he said in the tweet.

Marawi is a city that has been hit by a series of violent incidents in recent weeks between a local gang aligned with the Islamic State and Philippines security forces.

As many as 1500 civilians are trapped in the Isis-held parts of Marawi.

The Philippines military confirmed that US troops were on the ground near Marawi City but are not involved in fighting the Islamist militants.

The military had previously said the US was providing technical assistance to end the occupation.