Replacement in Arrays in PHP
Given an array:
<?php
$arr = ['a', 'b', 'c', 'd', 'e'];
?>
Replace the element with key 0 with '!',
and the element with key 3 - with '!!'.
Given an array:
<?php
$arr = ['a', 'b', 'c', 'd', 'e'];
?>
Replace the element with key 0 with '!',
and the element with key 3 - with '!!'.