I thought i had this figured out, but i guess i’m dumber than i thought
i have a snippet that is supposed to return an array. it works fine when i debug it from within the snippet itself, but when i call the snippet from another snippet, i get the string value "Array" instead of an actual array.
from the first snippet:
$job=array(’id’=>$row[’id’], ......);
return $job;
the second snippet just uses:
$job=$modx->runSnippet(’getData’,array(’jobid’=>1));
return $job[’id’];
the above outputs to display the letter ’A’
if i change it to ’return $job[0];’ i get the same ’A’
$job[1] results in ’r’, as does $job[2], and $job[3] and [4] result in ’a’ and ’y’ respectively. Where am i going wrong with this?