php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "Array"

What is the difference between using "return $array;" and "return $array[$var] = $array2['var'];" in PHP?

Using "return $array;" will simply return the entire array as is, while "return $array[$var] = $array2['var'];" will modify the value of a specific ke...

How can you output array values in a form without displaying "Array"?

When trying to output array values in PHP without displaying "Array", you can use a loop to iterate through the array and concatenate the values into...

Can typecasting an object into an array using (array)$object be a simpler alternative in PHP?

Typecasting an object into an array using (array)$object can be a simpler alternative in PHP to convert an object into an array. This method automatic...

What is the best way to extract a list of array names from an array in PHP?

To extract a list of array names from an array in PHP, you can use the `array_keys()` function to get an array of all the keys in the original array....

How can a nested array structure be converted into a simple array structure in PHP?

To convert a nested array structure into a simple array structure in PHP, you can use recursion to flatten the array. This involves iterating through...

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.