Click here to Skip to main content
14,335,481 members
Rate this:
Please Sign up or sign in to 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
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100