Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

Tell me how can you pass a variable by reference?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

Answer:

To be able to pass a variable by reference, we use an ampersand in front of it, as follows $var1 = &$var2

Download Junior PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me how can we automatically escape incoming data?How can we access the data sent through the URL with the GET method?