Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Solution for unseting an array

$arr = array(1, 2, 3, 4);
foreach ($arr as &$value) {
    $value = $value * 2;
}
unset($value);   // $value no longer references $arr[3]
Source by www.toptal.com #
 
PREVIOUS NEXT
Tagged: #Solution #unseting #array
ADD COMMENT
Topic
Name
7+6 =