var $input_birthday = jQuery('.input_birthday'),
$input_birthday_year = jQuery('.input_birthday_year'),
defaults = {
format: 'd.m.Y',
timepicker: false,
};
// Init
$input_birthday.datetimepicker(defaults);
// Attach event
$input_birthday_year.on('change', function(){
var is_checked = $(this).is(':checked'),
checked_settings = jQuery.extend({}, defaults, {format: 'd.m'});
$input_birthday.datetimepicker(is_checked ? checked_settings : defaults).datetimepicker('validate');
});
$ message_text='qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM абв..эюяАБВ..ЭЮЯ 1234567890~!@#$%^&*()_"`'"'"; string='<!DOCTYPE html><html><body>'$message_text'</body></html>'; string=${string//[^\xDO\x90-\xd0\xbf\xd1\x80-\xd1\x8f\xd0\x81\xd1\x91]/_}; echo $string;
string=${string//[^\xDO\x90-\xd0\xbf\xd1\x80-\xd1\x8f\xd0\x81\xd1\x91]/_};
message_text='qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM абв..эюяАБВ..ЭЮЯ 1234567890~!@#$%^&*()_"`'"'";
string="<!DOCTYPE html><html><body>$message_text</body></html>";
__DOCT_PE_html__html__bod__qwert_uiopasdfghjkl_xcvbnmQWERT_UIOPASDFGHJKL__CVBNM__________________1234567890_________________bod____html_