I have searched and read all sorts of options on the web in answer to this question but it seem that everyone makes it much harder than I imagined it to be...
Could someone tell me if this will work or if I just have a real misconception of the returned array issue.?
This is a shorthand version of my function
function NewPos($sequence,$member,$prev_id,$prev_loc,$type,$under_mem,$trans) {
// ... many lines of code
// sample variables assigned
$new_pos_id='1001';
$follow_id='1000033';
return array($new_pos_id,$follow_id);
then the call to the function to retrieve the two values as elements in an array
$pos_id = NewPos($mk_pos,$pos_member,$prev_num,$prev_loc,$type,$under_mem,$sent_id);
// this should give me 2 variables
$position = $pos_id[0];
$follow_id = $pos_id[1];
What I get in return is a blank $position, but the $follow_id is correct...
Been banging my head against the wall for a couple hours with this, and just don't understand what it is that I'm doing wrong...
Any help would be greatly appreciated.
thanks
Douglas