Filling Arrays in PHP
Given an array:
<?php
$arr = ['a', 'b', 'c'];
?>
Transform it into the following array:
<?php
['a', 'b', 'c', '-', '-', '-']
?>
Fill an array with 10 letters 'x'.
Given an array:
<?php
$arr = ['a', 'b', 'c'];
?>
Transform it into the following array:
<?php
['a', 'b', 'c', '-', '-', '-']
?>
Fill an array with 10 letters 'x'.