Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have an array which calculates the some integer value and then sum up all and i want to unset this array and new values should be storde .. is there a way to do this?

i am getting this error when i unset and again initialize array

"Unsupported operand types"

any help would be appreciated
Posted
Comments
Ramza360 4-Aug-14 9:36am    
Are you using the $array = array() or $array = [] after the unset?

Is the array a global array? If so use unset($GLOBALS[$array]) syntax.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900