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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -