You are assigning that array value by reference.
passing argument through reference (&$) and by $ is that when you pass argument through reference you work on original variable, means if you change it inside your function it’s going to be changed outside of it as well, if you pass argument as a copy, function creates copy instance of this variable, and work on this copy, so if you change it in the function it won’t be changed outside of it
Ref: http://www.php.net/manual/en/language.references.pass.php
Related Posts:
- PHP – exit or return which is better?
- Where to get php_mcrypt.dll for PHP 7.2?
- When do I use the PHP constant “PHP_EOL”?
- Using $this when not in object context in PHP
- How to use PHP’s password_hash to hash and verify passwords
- PHP password_hash(), password_verify()
- PHP – Failed to open stream : No such file or directory
- Simplest way to profile a PHP script
- Popup window in PHP?
- Subtract 1 day with PHP
- Warning: session_start(): Cannot send session cookie – headers already sent by (output started at [duplicate]
- PHP – Indirect modification of overloaded property
- Why is the response on localhost so slow?
- How to turn IDENTITY_INSERT on and off using SQL Server 2008?sql-server-2008
- How can I prevent java.lang.NumberFormatException: For input string: “N/A”?
- PHP “php://input” vs $_POST
- How to prevent Browser cache for php site
- Create Hyperlink in Slack
- Lambda Calculus Reduction steps
- PHP is not recognized as an internal or external command in command prompt
- Best way to do multiple constructors in PHP
- Laravel 5 Clear Views Cache
- PhpMailer SMTP NOTICE: EOF caught while checking if connected
- Redirecting from HTTP to HTTPS with PHP
- PHP syntax question: What does the question mark and colon mean? [duplicate]
- ApiNotActivatedMapError for simple html page using google-places-api
- Is there a way for a plugin to add an attribute to the tag of a theme?
- wp_set_object_terms and arrays
- Moving a PHP web-app to WordPress
- WordPress 4 invalid username special charachters issue
- Determining where fopen() is writing files when used from WordPress AJAX call [closed]
- Use ajax to update_post_meta
- How to install and activate a plugin via an external PHP script
- When did wordpress switched requirements to php7?
- 1+1 php counter inside the update_post_meta
- How do I test PHP files in WordPress?
- echo CHILD / SUB CATEGORIES of the CURRENT CATEGORY only
- Correct syntax to html php conversion
- show taxonomy meta field in template
- WSoD being caused by this piece of code
- How to make number of blog posts a custom field?
- How to display data from custom table in wordpress phpmyadmin
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Scrape external webpage for first image and add it to new post
- Fatal Errors on pluggable.php
- Log in / Log Out Custom Button
- Different Output for “Every Other” Foreach Statement?
- Search form does not work in my website
- How i can get post data from database when i am getting post id from url in wordpress
- stripping tags from excerpt in WordPress is not working
- Mixing variables into an array when inserting values
- How to Configure Events List in WordPress to Disappear Event Once Date is Past
- dynamic page using php from sql database
- Woocommerce Backend Search by Title and SKU
- How to disable delivery on certain date at checkout page in WooCommerce?
- Loop over Array and get the distinct ids
- Store metakey value as an array
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Removing sidebar on category pages
- Why my query does not run with prepare
- Dynamic Menu drops pages?
- Limiting the amount of posts retrieved by the loop
- Why doesn’t update_post_meta work for certain strings?
- Search Ajax Call – Use Form Data in Response
- Convert a column of a table containing an Array as response in HTML
- Custom fields array to display it monthly
- Custom Post Status 404 URL
- Checkbox doesn’t save inside metabox
- Limiting posts based on nested meta_query
- Trying to create a shortcode to display categories with a specific product tag
- How can I prevent a shortcode div from extending beyond its boundaries?
- Custom woocommerce payment gateway – Form
- wordpress notice
- ajax contact form not submit message
- After using ssl certificate, wordpress doesn’t work
- use with class file into wp_ajax hook
- Sum All the Post Meta of Published posts of Current Logged in user
- Trying to add get_the_title hook to this line
- WAMP SERVER Command Prompt SET PATH=%PATH%
- Compare Ajax Data Results
- Ordering / grouping posts by datepicker ACF
- Same Title on two different post type with single custom taxonomy
- Every time I use wp_get_current_user() my plugin breaks
- How to create “page” used for generating PDF? [closed]
- how to display child terms with parent terms in custom taxonomy?
- “Where… like” query not working as expected
- Stop header code from showing in category page?
- Custom Links in Walker Class
- Integrating CSS Into a WP Function Call [closed]
- WordPress menu links with images & class selection
- Use php array outside his function
- how to get image url from meta value?
- Show wrapper divs if query has results, then loop the results [closed]
- How make wp_nav() with my css?
- Something is burning in the server room; how can I quickly identify what it is?
- Finding out what user Apache is running as?
- Do systemd unit files have to be reloaded when modified?
- using custom pages for myaccount in woocommerce
- Putting form result in my database