It's closely to 10 years that i coding web application in PHP. The advantage of its is the text management, easy to read and write code, and power of hash array.
I usually use array in many program or library to store data. And have one case that I never know about it, The "Array node removing". I usually loop the array and move keep node into new array. Yes! it's too waste.. but I don't know how can i do for remove node. It have array_pop() and array_shift() but cannot remove specific node.
Today I found the way to do that!!! it just use unset()!!! it never bring up in my brain. Actually unexpected ... and it work !!!!
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment