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

Get the length of the current string.
public length ( ) : integer
Результат integer Length of current string.
Пример #1
0
 /**
  * @dataProvider stringSet
  */
 public function testLength($str)
 {
     $s = new StringObject($str);
     $length = $s->length();
     $lengthCheck = strlen($str);
     $this->assertSame($lengthCheck, $length);
 }