php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "specific value"

What is the function to search for a specific value in an array and return its key in PHP?

To search for a specific value in an array and return its key in PHP, you can use the array_search() function. This function searches an array for a g...

How can you output a specific value from a key in a foreach loop in PHP?

When iterating over an array using a foreach loop in PHP, you can output a specific value associated with a key by accessing that key within the loop....

What function in PHP can be used to search for a specific value within an array?

To search for a specific value within an array in PHP, you can use the `array_search()` function. This function searches an array for a given value an...

How can one efficiently iterate over XML elements in PHP to find specific child nodes based on certain criteria, such as the presence of a specific value?

To efficiently iterate over XML elements in PHP to find specific child nodes based on certain criteria, such as the presence of a specific value, you...

What is the best practice for sorting a multidimensional array in PHP based on a specific value within the array?

When sorting a multidimensional array in PHP based on a specific value within the array, you can use the `usort()` function along with a custom compar...

Showing 46 to 50 of 10000 results

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