I think the following should work but i don't now the name of the key all i know is the key values are 1 to 13.
# Change Key Name
$orig = "";
$new = "pagePath";
$array = $ga->getResults();
foreach ( $array as $k => $v )
$ArrayPaths[ $k === $orig ? $new : $k ] = ( is_array( $v ) ? array_change_key_name( $orig, $new, $v ) : $v );
if i do the following i can get it to change the first number to the new key. But i need it to change all the numbers.
$orig = 0;
$new = "pagePath";
$array = $ga->getResults();
foreach ( $array as $k => $v )
$ArrayPaths[ $k === $orig ? $new : $k ] = ( is_array( $v ) ? array_change_key_name( $orig, $new, $v ) : $v );
//var_dump(array_pop($ga->getResults()));
# Return the Array
$data["PagePaths"] = $ArrayPaths;