public function comparePlaceholders($array1, $array2)
    {
        if (!array_key_exists('placeholders', $array1) || !array_key_exists('placeholders', $array2)) {
            return false;
        }

        $a1 = $array1['placeholders'];
        $a2 = $array2['placeholders'];

        if (count($a1) !== count($a2)) {
            return false;
        }

        foreach ($a1 as $key => $holder) {
            if (!array_key_exists($key, $a2)) {
                return false;
            }

            foreach ($holder as $var => $value) {
                if ($var == "label") {
                    continue;
                }
                
                if (!array_key_exists($var, $a2[$key])) {
                    return false;
                }

                if ($value != $a2[$key][$var]) {
                    return false;
                }
            }
        }

        return true;
    }
public function comparePlaceholders($array1, $array2)
    {
        if (!array_key_exists('placeholders', $array1) || !array_key_exists('placeholders', $array2)) {
            return false;
        }

        $a1 = $array1['placeholders'];
        $a2 = $array2['placeholders'];

        if (count($a1) !== count($a2)) {
            return false;
        }

        foreach ($a1 as $key => $holder) {
            if (!array_key_exists($key, $a2)) {
                return false;
            }

            foreach ($holder as $var => $value) {
                if ($var == "label") {
                    continue;
                }
                
                if (!array_key_exists($var, $a2[$key])) {
                    return false;
                }

                if ($value != $a2[$key][$var]) {
                    return false;
                }
            }
        }

        return true;
    }
public function comparePlaceholders ( $ array1 , $ array2 ) { if ( ! array_key_exists ( 'placeholders' , $ array1 ) || ! array_key_exists ( 'placeholders' , $ array2 ) ) { return false ; } $ a1 = $ array1 [ 'placeholders' ] ; $ a2 = $ array2 [ 'placeholders' ] ; if ( count ( $ a1 ) !== count ( $ a2 ) ) { return false ; } foreach ( $ a1 as $ key => $ holder ) { if ( ! array_key_exists ( $ key , $ a2 ) ) { return false ; } foreach ( $ holder as $ var => $ value ) { if ( $ var == "label" ) { continue ; } if ( ! array_key_exists ( $ var , $ a2 [ $ key ] ) ) { return false ; } if ( $ value != $ a2 [ $ key ] [ $ var ] ) { return false ; } } } return true ; }
Compare two arrays with each in order to determined whether they have differences or not.

An array must contain the keys `placeholders` otherwise false is returned too.

@param array $array1
@param array $array2
@return bool true if the same, false if not the same
Compare two arrays with each in order to determined whether they have differences or not .