I am currently working to improve a PHP timetable. A statement being used by the timetable is:
echo $array2['username'] ? $array2['username'] : '-';
I understand that echo is displaying the information but why is there is a question mark? also what is the purpose of the colon?
I'm trying to advancde the above line to include PHP if statements and also a href tag so I need to know what the above statement is doing in order to break it up so I can recode appropriately.