Code:
protected function prepare_mask_to_edit($identifier,$required_mask=null) {
$mask = (!is_null($required_mask)) ? $required_mask : $this->mask;
preg_match('#\[('.$identifier.'+)\]#', $mask,$matches);
if(is_array($matches)) {
$question_mark = str_replace($identifier,'?',$matches[1]);
$editable_mask = str_replace($matches[1], $question_mark,
Leave a comment: