I have looked through the PHP manual about ternary operators and I found it hard to understand.
How can I convert this ternary operator to an if statment or edit so it will do the following code below. Instead of echoing I want the code to run a method depending on whether or not the use has logged in,
echo 'User ' . ($openid->validate() ? $openid->identity . ' has ' : 'has not ') . 'logged in.';
Your code is effectively:
It sounds like what you want to do is: