Phoenix: At a campaign-style rally the Phoenix mayor wished hadn't happened, US President Donald Trump reiterated his promise of building a border wall with Mexico to stop illegal migration.

In front of hundreds of carefully screened supporters, Trump indicated nothing would stop this campaign pledge.

"If we have to close down the government, we are building that wall," he said.

"One way or the other, we're going to get that wall."