clear an array in php

by THavamani 2013-03-25 15:04:21

How to clear an array in php

Method 1:
$array = array('a'=>1);
//method 1 to clear array
unset($array);

Method 2:
$array = array('a'=>1);
//method 2 to clear array
$array y = array();
990
like
0
dislike
0
mail
flag

You must LOGIN to add comments