public function getdiff($struct1, $struct2, $slashtoobject = false)
    {
        if (!$this->studyType($struct1, $problem) || !$this->studyType($struct2, $problem)) {
            return $problem;
        }

        $this->clockStart();

        $structpath1_array = array();
        $structpath2_array = array();

        $this->structPathArray($struct1, $structpath1_array, "");
        $this->structPathArray($struct2, $structpath2_array, "");
        $deltadiff_array = $this->structPathArrayDiff($structpath1_array, $structpath2_array, $slashtoobject);

        if ($this->config["debug"]) {
            $deltadiff_array["time"] = $this->clockMark();
        }

        return $this->returnTypeConvert($deltadiff_array);
    }
public function getdiff($struct1, $struct2, $slashtoobject = false)
    {
        if (!$this->studyType($struct1, $problem) || !$this->studyType($struct2, $problem)) {
            return $problem;
        }

        $this->clockStart();

        $structpath1_array = array();
        $structpath2_array = array();

        $this->structPathArray($struct1, $structpath1_array, "");
        $this->structPathArray($struct2, $structpath2_array, "");
        $deltadiff_array = $this->structPathArrayDiff($structpath1_array, $structpath2_array, $slashtoobject);

        if ($this->config["debug"]) {
            $deltadiff_array["time"] = $this->clockMark();
        }

        return $this->returnTypeConvert($deltadiff_array);
    }
public function getdiff ( $ struct1 , $ struct2 , $ slashtoobject = false ) { if ( ! $ this -> studyType ( $ struct1 , $ problem ) || ! $ this -> studyType ( $ struct2 , $ problem ) ) { return $ problem ; } $ this -> clockStart ( ) ; $ structpath1_array = array ( ) ; $ structpath2_array = array ( ) ; $ this -> structPathArray ( $ struct1 , $ structpath1_array , "" ) ; $ this -> structPathArray ( $ struct2 , $ structpath2_array , "" ) ; $ deltadiff_array = $ this -> structPathArrayDiff ( $ structpath1_array , $ structpath2_array , $ slashtoobject ) ; if ( $ this -> config [ "debug" ] ) { $ deltadiff_array [ "time" ] = $ this -> clockMark ( ) ; } return $ this -> returnTypeConvert ( $ deltadiff_array ) ; }
Returns the difference between two structures

@param  [array|string|\stdClass] $struct1 [struct1]
@param  [array|string|\stdClass] $struct2 [struct2]
@return [array|string|\stdClass] struct diff
Returns the difference between two structures