Home  >  Article  >  Backend Development  >  How to discard key in php

How to discard key in php

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-09-27 15:05:001863browse

How to discard key in php

To delete the element of the specified key in the array, you can use unset directly:

Related recommendations: "php Basic Tutorial"

The result is Array ([0] => a [2] => c [3] => d )

The above is the detailed content of How to discard key in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to import css in PHPNext article:How to import css in PHP