PHP timetable statement -


I am currently working to improve a php timetable. A statement used by the timetable is:

  $ array2 ['username'] echo? $ Array 2 ['username']: '-';  

I understand that the echo is displaying information but why is the question mark? What is the purpose of the colon?

I am trying to forward the line above so that if statements and an ARF tag are included in PHP then I need to know what is doing to break the above statement So that I can read properly / P>

These are turner operators . This is equivalent to a if-else statement.

The above statement is trying to see if the index username is present or set. If true , this index uses the value of the username otherwise, it returns an empty string.

Context ::


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -