0

why this happen ? can any one describe what happened ?

<?php $imstring = 24; $imint = "Hello World"; (int)$imint = (string)$imstring = $imint = &$imstring ; echo gettype($imint); echo gettype($imstring); //both putputs are string #why #outputs

4th Oct 2019, 9:38 PM
[SE]شبگرد
[SE]شبگرد - avatar
2 Antworten
+ 2
Because of the "&" I believe Possible fixed code 👇 https://code.sololearn.com/wz6v4Y9z48l6/?ref=app
4th Oct 2019, 10:38 PM
Minerals2016
Minerals2016 - avatar
0
that's true code , i want to know why and how thats happend ?
5th Oct 2019, 7:39 AM
[SE]شبگرد
[SE]شبگرد - avatar