Here is a weird question. I am building an array of objects manually, like this:
$pages_array[0]->slug = \"index\";
$pages_array[0]->title = \"Site Ind
Assuming the slug will be unique, perhaps use it to identify your page arrays:
$pages_array = array() ;
$pages_array['index'] = array() ;
$pages_array['index']['title'] = 'Site Index' ;
$pages_array['index']['template'] = 'interior' ;
$pages_array['a'] = array() ;
$pages_array['a']['title'] = '100% Wide (Layout A)' ;
$pages_array['a']['template'] = 'interior' ;
etc
You'll just need to use the array key to get your slug value.