<?php

// your code goes here

$a = [[1, 2, 3], ['q', 'w', 'e'], ['a', 's', 'd']];

$k = [0, 1,  2];

$r = $a[2][$k[2]];

var_dump($r);
