Perth has broken another heat record.

The temperature has climbed above 30 degrees in the city for the 26th day in a row, beating the previous record set in the summer of 1988.

But the string of warm nights has ended, with the mercury last night dropping below 20 for the first time in 17 days.