Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

hinom

Challenge for ZEND PHP5 Certification - 027

Exercise 27  

5 votos

  1. 1. Whats is true for references in PHP?

    • A. Accessing different variable content by different name
      1
    • B. Accessing same variable content by different name
      3
    • C. To access same variable content by same name
      0
    • D. Accessing different variable content by same name
      0


Recommended Posts

Exercise 27

 

Whats is true for references in PHP?

 

A. Accessing different variable content by different name

B. Accessing same variable content by different name

C. To access same variable content by same name

D. Accessing different variable content by same name

Compartilhar este post


Link para o post
Compartilhar em outros sites

Answer: B

 

Explanation

 

References are a method of having two names for the same variable. A more technical description would be: references are a method of having two keys in a symbol table pointing to the same zval container.

References can be created with the reference assignment operator &=.

 

http://php.net/references

http://www.derickrethans.nl/files/phparch-...les-article.pdf

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.