php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "function return value"

What is the impact of not capturing the return value of a recursive function call within the function itself in PHP?

When not capturing the return value of a recursive function call within the function itself in PHP, the result of the recursive call is essentially lo...

How can storing the return value of a function like date() in a variable improve the efficiency of PHP code?

Storing the return value of a function like date() in a variable can improve the efficiency of PHP code by reducing the number of times the function n...

What is the significance of the error message "Fatal error: Can't use function return value in write context" in PHP?

The error message "Fatal error: Can't use function return value in write context" in PHP occurs when trying to use a function's return value as a refe...

Is it advisable to use a return statement in a setter function in PHP if the value is already stored within the object?

Using a return statement in a setter function in PHP is not advisable if the value is already stored within the object. The purpose of a setter functi...

What are the potential pitfalls of using echo instead of return to output a value from a class function in PHP?

Using `echo` instead of `return` in a class function can lead to unexpected behavior and make it harder to work with the returned value. It can also m...

Showing 31 to 35 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.