use path in array to location variable in PHP