Home > Article > Backend Development > php array operations
<code><span>$arr</span>[] = <span>"caokaiyan"</span>;<span>//</span>键为数字键 <span>$arr</span>[<span>'xuehao'</span>] = <span>1001121213</span>;</code>
<code><span>unset</span>(<span>$arr</span>[<span>'xuehao'</span>]);</code>
Copyright Statement: Knowledge comes from the people, and is used by the people! Reprinting is welcome. Please attach a link to this article at the beginning. The article will be updated from time to time!
The above has introduced PHP array operations, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.