<?php
function getThePath($node1, $node2){ //pass strings
//$n1 = $matchIDtoNum[$node1]; //get int (from pathdata)
//$n2 = $matchIDtoNum[$node2];
$n1 = $node1;
$n2 = $node2;
$res = array();
$res[0] = $n1;
$res[1] = $n2;
return $res;
}
$res = getthepath(rand(1,5), rand(1,5));
print_r($res);
?>