php - What does this mean? $length = null === $length ? strlen($data) : (int)$length ; -
I know about the Ternary operator, more or less but I am unable to read this line.
$ length = zero === $ length? Strlen ($ data): (int) $ length;
$ length = null === $ What is the length?
Thank you very much, MEM
$ length is the value of
null
,
It means: code> strollon Otherwise, It's easy to understand that the bracket is placed in the right place: (infinite) $ length
.
$ length = (Zero === $ length)? Strlen ($ data): (int) $ length;
Comments
Post a Comment