php - Conditional return empty fields instead true or false -


I have the following problem.

When I try to log in, this is an empty field

  $ left = $ right = FALSE; $ Correct = $ end & lt; ($ Index + 1) * $ arr [$ index] ['sec'] & amp; Amp; $ End & gt; $ Index * $ arrival [$ index] ['seconds']; $ Left = ($ start <($ index + 1) * $ arr [$ index] ['sec']) & amp; ($ start> = $ index * $ arr [$ index] [' Sec '])); Echo $ left "-". $ Right ". & Lt; / br & gt;";    

When you resonate false boolean, then it For the purpose of debugging purposes, use var_dump , as it will show you the exact value of the variable, this is an empty string ''

To display the string value of incorrect and true , use a threesome:

resonance ($ left? "True": "wrong"). "-". ($ True? "True": "wrong"). "";

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -