<?php print preg_replace( '/([а-яё\.])/iu', idn_to_ascii( "$1" ), 'мой-сайт.рф' );
You have javascript disabled. You will not be able to edit any code.