SirChick Posted January 24, 2008 Share Posted January 24, 2008 I have a question about unsetting rows in an array from an include. Say you got 2 scripts running at the same time both using the same array. Then lets say one script unsets id [3] Is there a way to only unset it so that one script will read it as unset but the other script it will still be there so its exclusively unset for one page and not the other even though its the same array ? It would help dramatically for reducing repetition if this is possible. Rather than the array on every page, having one array set and the scripts use it would mean i only need the array once which is quite a long array aswell...which is better than copy and pasting it to all my scripts that use it. Hope you can help. Quote Link to comment Share on other sites More sharing options...
KrisNz Posted January 24, 2008 Share Posted January 24, 2008 No, that would be illogical. If you need the original one in other sections of code, make a copy of the array in the appropriate script and operate on that. Quote Link to comment Share on other sites More sharing options...
SirChick Posted January 24, 2008 Author Share Posted January 24, 2008 damn ok. no problems thanks for the help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.