PHP'de Dizi Doldurma
Bir dizi verildi:
<?php
$arr = ['a', 'b', 'c'];
?>
Bundan aşağıdaki diziyi oluşturun:
<?php
['a', 'b', 'c', '-', '-', '-']
?>
Diziyi 10 tane 'x' harfi ile doldurun.
Bir dizi verildi:
<?php
$arr = ['a', 'b', 'c'];
?>
Bundan aşağıdaki diziyi oluşturun:
<?php
['a', 'b', 'c', '-', '-', '-']
?>
Diziyi 10 tane 'x' harfi ile doldurun.