PHP හි අරා පිරවීම
array_padarray_fillarray_fill_keysЗадание 1
අරාවක් දෙනු ලැබේ:
php<?php
$arr = ['a', 'b', 'c'];
?>
එයින් පහත අරාව සාදන්න:
php<?php
['a', 'b', 'c', '-', '-', '-']
?>
Задание 2
අරාව 10 වතාවක් 'x' අකුරින් පුරවන්න.