First look at the unset function syntax
unset
Deletes a variable.
Syntax: int unset (mixed Var);
return value: Integer
Function type: PHP system function
Content Description
This function deletes the variable and returns a true value for
In actual use, PHP unset global variables can only destroy local variables and cannot implement global variables. Next we will solve this problem in detail. Hope to help you.
Some functions in PHP are literally hard to understand for beginners. You
PHP uses unset () to delete a cell (key) in an array, unset array
This example describes how PHP uses unset () to delete a cell (key) in an array. Share to everyone for your reference. The specific analysis is as follows:
Unset can either delete a
Php uses unset () to delete a cell (key) in an array. Php uses unset () to delete a cell (key) in an array. This article mainly introduces how php uses unset () to delete a cell (key) in an array, this example analyzes how the unset function deletes
For Web programming, the most important thing is to access and read and write data. There may be many ways to store them, such as strings, arrays, files, and so on. arrays, which can be said to be a more important way of using PHP data. PHP's Array
Transferred from the Prophet Community https://xz.aliyun.com/t/24430x00 PrefaceUsually the site background can be configured to allow uploading attachments file type, general login background, add PHP type can upload php file Getshell. However, as
arrays, which can be said to be a more important way of using PHP data. PHP's Array function is numerous, below is my study summary, takes this to remember, facilitates later to learn.
1. Array definition
The definition of an array is defined using
In PHP, unset and array_splice are used to delete the elements in the array. The difference is unsetarray_splice. In PHP, unset and array_splice are used to delete elements in an array. if unsetarray_splice is used to delete an element in an array,
PHP Tutorial Variable Destruction unset usage
Unset--releasing the given variableDescribevoid unset (mixed var [, mixed Var [, ...]])
Unset () destroys the specified variable. Note in PHP 3, unset () returns True (actually an integer value of 1),
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.