I have a 'problem' and it is the following I am receiving a parameter with a value in my method null
, this value null
comes as if it were a string 'null'
, what I have tried to do is the following script
$data['preg_servicio_asociado'][$i] == "null" ? null :
$data['preg_servicio_asociado'][$i]
my doubt is generated in the following, how to say that it returns $data['preg_servicio_asociado'][$i]
without the need to assign it in the else
, will this be possible?
I appreciate the interest