public static function overlapLeftMerge($overlap, $attribute, $field)
    {
        $overlap   = explode('.', $overlap);
        $attribute = explode('.', $attribute);
        $field     = explode('.', $field);

        for ($i=0; $i<count($overlap); $i++) {
            $field[$i] = $attribute[$i];
        }
        return implode('.', $field);
    }
public static function overlapLeftMerge($overlap, $attribute, $field)
    {
        $overlap   = explode('.', $overlap);
        $attribute = explode('.', $attribute);
        $field     = explode('.', $field);

        for ($i=0; $i<count($overlap); $i++) {
            $field[$i] = $attribute[$i];
        }
        return implode('.', $field);
    }
public static function overlapLeftMerge ( $ overlap , $ attribute , $ field ) { $ overlap = explode ( '.' , $ overlap ) ; $ attribute = explode ( '.' , $ attribute ) ; $ field = explode ( '.' , $ field ) ; for ( $ i = 0 ; $ i < count ( $ overlap ) ; $ i ++ ) { $ field [ $ i ] = $ attribute [ $ i ] ; } return implode ( '.' , $ field ) ; }
Merge the overlap of pattern, field, and attribute.

@param string $overlap    Str::overlapLeft of a pattern (foo.*.bar) and field (foo.*.bax)
@param string $attribute  Realised attribute name (foo.0.bar)
@param string $field      Field name (foo.*.bax)

@return bool|string
Merge the overlap of pattern field and attribute .