php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "call by reference"

What does the deprecated message "Assigning the return value of new by reference is deprecated" mean in PHP?

The deprecated message "Assigning the return value of new by reference is deprecated" in PHP means that assigning the result of a new object instantia...

How can a variable number of parameters be passed by reference in a PHP function?

When passing a variable number of parameters to a PHP function, you can use the `func_get_args()` function to retrieve all the parameters passed to th...

Is parameter passing by reference an effective way to reduce memory usage in PHP scripts?

Parameter passing by reference in PHP can be an effective way to reduce memory usage in scripts because it allows you to directly manipulate the origi...

What are some best practices for handling variable reference parameters in PHP functions?

When passing variables by reference in PHP functions, it is important to use the '&' symbol before the parameter name in both the function definition...

What are the potential pitfalls of passing objects by reference in PHP?

Passing objects by reference in PHP can lead to unintended side effects and changes to the original object. To avoid this, it's recommended to pass ob...

Showing 46 to 50 of 10000 results

‹ 1 2 ... 7 8 9 10 11 12 13 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.