The incident took place at the Stirling Station at about 8.50am causing delays for the city-bound train.

Luckily, the passenger’s fellow commuters joined forces to push on the train, which moved on its suspension enough for the man to get out of the sticky situation.

Passenger Nicolas Taylor said the man was able to walk so seemed “reasonably okay” after the accident.

“He seemed to be a bit sheepish, because right where he fell was the ‘mind the gap’ writing.”

Transperth spokesman David Hynes told ABC, “He stood in the doorway and as he was sort of taking up his position there, one leg slipped outside the door, slipped outside the gap, and he was stuck.

“We alerted the driver, made sure the train didn’t move.

“Then our staff who were there at the time got the passengers, and there were lots of them, off the train, and organised them to sort of rock, tilt the train backwards away from the platform so they were able to get him out and rescue him.”

Amazingly the man escaped serious injury.

 Image via Twitter @nicolasTaylor/ABC News