React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in PHP by
How can you pass a variable by reference?
Click here to read more about DevOps

1 Answer

0 votes
by

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

Related questions

Madanswer
0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...