php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "count() function"

What is the function count(glob("*.jpg")) used for in PHP?

The function count(glob("*.jpg")) is used to count the number of .jpg files in a directory. This can be useful when you need to know how many image fi...

What is the correct way to use the Count function in MySQL with PHP?

When using the Count function in MySQL with PHP, you need to fetch the result of the query and access the count value using the appropriate array key....

What is the function of COUNT() in SQL and how can it be used in PHP?

The COUNT() function in SQL is used to count the number of rows that meet a specified condition in a table. In PHP, you can execute a SQL query using...

What are the differences between using the count function and mysql_result in PHP for counting records?

When counting records in PHP using MySQL, it is recommended to use the count function rather than mysql_result for better performance and accuracy. Th...

How can the glob function be utilized to accurately count subfolders in PHP?

To accurately count subfolders in PHP using the glob function, we can use the glob function to retrieve an array of all subfolders within a directory...

Showing 6 to 10 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.