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: "itemprop =" text ">

code> strollon Otherwise, (infinite) $ length .


It's easy to understand that the bracket is placed in the right place:

  $ length = (Zero === $ length)? Strlen ($ data): (int) $ length;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -