Recent Posts

How to solve: Fatal error: Can't use function return value in write context

This usually happens when using a function directly with empty.
Example:
if (empty(is_null(null))) {
  echo 'empty';
}
This is because empty is a language construct and not a function, it cannot be called using variable functions.

No comments:

Post a Comment