php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "non-array data"

What are the potential pitfalls of using implode() with non-array data?

When using implode() with non-array data, the function will trigger a warning and return NULL, as it expects an array as its first parameter. To solve...

What happens when creating an array in PHP with non-sequential indexes?

When creating an array in PHP with non-sequential indexes, PHP will automatically convert the array to an associative array. This means that the keys...

What are the potential implications of using count() on a non-array or non-Countable object in PHP?

When using count() on a non-array or non-Countable object in PHP, it will result in a warning and return 1. To solve this issue, you can check if the...

What are best practices for associating numerical values with non-numeric data for sorting in PHP scripts?

When sorting non-numeric data in PHP scripts, one common approach is to associate numerical values with the non-numeric data to enable sorting. One wa...

What changes were made in PHP 7.2 that led to the warning being thrown when count() is used on non-array or non-Countable objects?

In PHP 7.2, changes were made to the count() function to throw a warning when used on non-array or non-Countable objects to prevent potential errors....

Showing 1 to 5 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
  • FAQ

© 2025 php.org. All rights reserved.