fill() 정적인 공개 메소드

Fills an array up with additional elements to certain amount.
static public fill ( array $array, integer $limit, mixed $fill = 'placeholder' ) : array
$array array The source array
$limit integer The number of elements the array should contain after filling it up.
$fill mixed The element, which should be used to fill the array
리턴 array The filled-up result array
예제 #1
0
파일: ATest.php 프로젝트: LucasFyl/korakia
 public function testFill()
 {
     $users = $this->users;
     $users = a::fill($users, 100);
     $this->assertEquals(100, count($users));
 }