I am trying to follow the logic in a code snippet I found on google.
$user = array_shift( &array: $result);
Intelephense is giving me an error on the & and the :
if I remove the &array: then ibreak other unrelated lines in the code.
Can some explain the use of The &array: in that sentence. I understand and have used the array_shift() function before but I havenever seen the this usage before.
Thank you in advance for any help.
Lindhum2.0