php remove from array

This is very simple in php.There is function called “unset()”.Which You can use to remove array element.what you have to do is pass array name and element key to which you want to remove.

here is just simple example

  //will remove second element from array

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.