protected function bindArgs(array $pram, array $args)
    {
        if (count($pram) == count($args)) {
            $newArgs = array_combine($pram, $args);
        } else {
            $newArgs = [];
            foreach ($pram as $p) {
                $newArgs[$p] = array_shift($args);
            }

            if (isset($args[0]) && count($args) == 1) {
                foreach (explode('/', '/' . $args[0]) as $arg) {
                    $newArgs[] = $arg;
                }
                $this->fullArg = $newArgs[0] = $args[0];
            }
            // pre($args);
            if (count($args)) {
                $newArgs = array_merge($newArgs, $args);
            }
        }
        return $newArgs;
    }
protected function bindArgs(array $pram, array $args)
    {
        if (count($pram) == count($args)) {
            $newArgs = array_combine($pram, $args);
        } else {
            $newArgs = [];
            foreach ($pram as $p) {
                $newArgs[$p] = array_shift($args);
            }

            if (isset($args[0]) && count($args) == 1) {
                foreach (explode('/', '/' . $args[0]) as $arg) {
                    $newArgs[] = $arg;
                }
                $this->fullArg = $newArgs[0] = $args[0];
            }
            // pre($args);
            if (count($args)) {
                $newArgs = array_merge($newArgs, $args);
            }
        }
        return $newArgs;
    }
protected function bindArgs ( array $ pram , array $ args ) { if ( count ( $ pram ) == count ( $ args ) ) { $ newArgs = array_combine ( $ pram , $ args ) ; } else { $ newArgs = [ ] ; foreach ( $ pram as $ p ) { $ newArgs [ $ p ] = array_shift ( $ args ) ; } if ( isset ( $ args [ 0 ] ) && count ( $ args ) == 1 ) { foreach ( explode ( '/' , '/' . $ args [ 0 ] ) as $ arg ) { $ newArgs [ ] = $ arg ; } $ this -> fullArg = $ newArgs [ 0 ] = $ args [ 0 ] ; } // pre($args);
 if ( count ( $ args ) ) { $ newArgs = array_merge ( $ newArgs , $ args ) ; } } return $ newArgs ; }
Bind args and parameters.

@param array $pram
@param array $args

@return array
Bind args and parameters .