How can I debug my php code?

What Is The Output From This PHP Code? $x = 4; $rt = "Debug"; $rt_4 = "Test"; Echo ${rt_.$x};

  • Answer:

    Output is TestBecause $x is 4 and the echo statement prints value from the variable which begins with rt, but then has $x in it (which is in this case, 4), final variable would be $rt_4.And $rt_4 = "Test"

Anonymous at Blurtit.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.