- 2

What is the output of this code $a = '1' ; $b = &$a; $b = "2$b" ; echo $a. ", " .$b;

in php

30th Sep 2018, 6:29 PM
kcee
kcee - avatar
5 Réponses
- 1
21,21 right?
30th Sep 2018, 6:48 PM
Sergey Ushakov
Sergey Ushakov - avatar
0
function myFunction($a, $b) { echo $a * $b; }
27th Nov 2021, 10:52 AM
Xolmirzayev Shaxriyor
Xolmirzayev Shaxriyor - avatar
0
21,21 as ampersand operator is used so the valud of $a would be same as $b.
25th Jul 2023, 8:41 AM
Kirti
0
21, 21
4th Apr 2024, 2:36 PM
MaHiPal Reddy R
MaHiPal Reddy R - avatar
- 1
______myFunction($a, $b) { echo $a_$b; }
1st Mar 2020, 2:43 PM
yassine qriaa
yassine qriaa - avatar