php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "array referencing"

How can PHP variables be properly utilized to handle multiple prices for products in a shopping cart?

To handle multiple prices for products in a shopping cart, you can use an associative array where the keys are the product IDs and the values are the...

How can explode be used in PHP to extract specific values from a string?

To extract specific values from a string in PHP, you can use the explode function to split the string into an array based on a specified delimiter. On...

How can you extract specific information from a serialized string in PHP?

When dealing with serialized strings in PHP, you can use the `unserialize()` function to convert the serialized string back into an array or object. O...

What is the potential issue with using arrays in PHP when register_globals is set to OFF?

When register_globals is set to OFF in PHP, using arrays directly in the code can cause issues because the array keys are not automatically converted...

How can PHP arrays be manipulated to store multiple values for a single key?

To store multiple values for a single key in a PHP array, you can use nested arrays or associative arrays. This allows you to group related values tog...

Showing 126 to 130 of 10000 results

‹ 1 2 ... 23 24 25 26 27 28 29 ... 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.