charAt() публичный Метод

Example:: String.charAt("abcdefg", 5) == "f"
public charAt ( string $string, integer $index ) : string
$string string The input string
$index integer The index to get
Результат string The character at the given index
 /**
  * @test
  * @dataProvider charAtExamples
  */
 public function charAtWorks($string, $index, $expected)
 {
     $helper = new StringHelper();
     $result = $helper->charAt($string, $index);
     $this->assertSame($expected, $result);
 }