Syntax functions in PHP

Are there functions in PHP that can:

  1. Add a character to the end of the variable value ?
  2. Read the last character of the variable value?

Answer 1

substr($,strlen($)-1,1); // 
$=$ . "";          //    .

Answer 2

  1. If concatenating to the contents of a variable, then just .(dot)
  2. subsrt– read about it, it will be better