How to print the value of an id?

If I select 40 then how to print the value of of 40 by a code?

  Discussion posts and replies are publicly visible

Parents Reply Children