php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "count variable"

Is it possible to count occurrences without storing values in PHP?

Yes, it is possible to count occurrences without storing values in PHP by using a loop to iterate through the array and incrementing a counter variabl...

What is the difference between using COUNT(*) and COUNT(column) in a MySQL query for counting posts in PHP?

When counting posts in a MySQL query in PHP, using COUNT(*) will count all rows in a table regardless of null values in the specified column, while us...

What potential problem can arise when using count() function in the for loop to iterate through the UID values in PHP?

Using the count() function in the for loop to iterate through UID values in PHP can lead to performance issues as the count() function is called in ev...

What are the differences between using "Count" and "Count(distinct)" in a PHP MySQL query, and when should each be used?

When using "Count" in a MySQL query, it will count all rows that match the specified condition, including duplicates. On the other hand, "Count(distin...

What is the difference between using SELECT COUNT() and mysql_num_rows() to count records in a table?

The main difference between using SELECT COUNT() and mysql_num_rows() to count records in a table is that SELECT COUNT() directly retrieves the count...

Showing 36 to 40 of 10000 results

‹ 1 2 ... 5 6 7 8 9 10 11 ... 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.