<<< Previous question <<< Question ID#0126.md >>> Next question >>>
Which of the following options shows the correct format of fetching class variables using the $this variable?
- A) $this->varname
- B) $this.$varname
- C) $this.varname
- D) $this->$varname
Answer
Answer: A