Computer Science, asked by manishakadam1988, 10 months ago

Create a PHP function to swap two numbers using call by reference

Answers

Answered by itzBrainlyBoy
0

Answer:

Swap Two Numbers using Call By Reference in PHP In call by reference, Address of a variable is passed. Address represents where the value of a variable is stored. In this example, we swap two numbers using call by reference in PHP. echo "First number ".

Answered by Anonymous
0

Answer:

The below program is to swap two numbers with and without using third variable. The PHP echo statement is used to output the result on the screen. Swapping two numbers simply means interchanging the values of two numeric variables.

Similar questions