Question about references



I have a question about refrences.

I know if you have a function that returns an array and you designate
it and its recipient by "at" signs the reference is included.

/*** SAMPLE 1 *********/

function &refer_this(){ return array(1, 2, 3); };
$my_var =& $refer_this();

/***** END SAMPLE 1 **********/

What about situations where there isn't an equal sign to ampersand? for
instance if you include the array in an array directly? or as a
parameter in another function?

/********* SAMPLE 2 ***********/

$my_array = array(4, refer_this(), 6);

/********** SAMPLE 3 ************/

function &refer_that(&$ele1, $ele2, $ele3)
{
return array($ele1, $ele2, $ele3);
}

$my_other_array =& refer_that(refer_this(), 8, 9);

/******* END SAMPLES ***************/

is the referential integrity maintained in these cases?

.



Relevant Pages

  • string to array
    ... please help me with converting string to an array: ... Ako ste ovu poruku primili gre¹kom i nije vam namijenjena, ... Distribucija, kopiranje i otvaranje privitaka je strogo zabranjeno. ... recipient and may contain legally privileged or confidential information. ...
    (alt.php)
  • RE: Using SendMail through Access - Excel Automation
    ... to separate my string of email addresses into components within the array I ... If strpos = 0 Then ... the Email field only contains the email address of one ... an error stating "Unknown recipient name found in the recipient list." ...
    (microsoft.public.excel.programming)
  • Re: Multiple Recipients in SendMail Method. HELP!!!
    ... Regards ... >> I am not attempting to add another recipient, ... >> array of text strings if there are multiple recipients. ... >> John Baker ...
    (microsoft.public.excel.programming)
  • Re: Error with Multiple Recipients on .SendMail
    ... addresses to an array and pass the array ) to .SendMail in the ... > Regards Ron de Bruin ... >> Unknown recipient name found in recipient list. ...
    (microsoft.public.excel.programming)
  • Re: Looking for speed performance to draw line.
    ... each item in an array, that being the next and/or previous indexes. ... and it's next pointer to the previous item's original next pointer. ... Next -1, Prev 0 ... shapes up into shape classes that implemented the required commands ...
    (microsoft.public.vb.winapi.graphics)