Dấu "..." chỗ "...explode()" có tác dụng gì?

public function direct($uri, $requestType)
{
    if (array_key_exists($uri, $this->routes[$requestType])) {

        return $this->callAction(
            ...explode("@", $this->routes[$requestType][$uri])
        );
    
    }

    throw new Exception('No route defined for this URI');
    
}

protected function callAction($controller, $action) {

    $controller = new $controller;

    if (! method_exists($controller, $action)) {
        throw new Exception(
            "{$controller} does not respond to the {$action} action."
        );
        
    }

    return $controller->$action();

}

search với keyword “spread syntax js”

1 Like

e hỏi php chứ ko phải js ạ?

e cảm ơn nhé. thay js = php ra rồi ạ

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?