Hi All, I have file with only arrays which are many of different size. is it possible to make array modification provided the array name, index and value like inserting, deleting and updating. Say, <? // Comment1 $arr1 = array( "index1" => "bus", "index2" => "aus" ); if i specify to delete index1 then array shud be... <? // Comment1 $arr1 = array( "index2" => "aus" ); I have done this making use of the string functions . but i want to know is there built functions to do all that. Thanks
Sorry, didn't see the post above when I posted. I might as well leave in what I posted anyway <?php unset($arr1['index1']); ?> PHP:
thanks for reply.... I forgot to tell that set of array's are present in a separate file. So i'm making array modification in another php file. what i did is i converted the array's php file into string then used string function to make array modification.