This is a discussion on Using Arrays in PHP within the PHP Programming forums, part of the Web Development category; In the products array, we allowed PHP to give each item the default index. This meant that the first item ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#131
| |||
| |||
| In the products array, we allowed PHP to give each item the default index. This meant that the first item we added became item 0, the second item 1, and so on. PHP also supports associative arrays. In an associative array, we can associate any key or index we want with each value. The following code creates an associative array with product names as keys and prices as values. Initializing $prices = array( 'Tires'=>100, 'Oil'=>10, 'Spark Plugs'=>4 ); |
|
#132
| |||
| |||
| Nice........ Last edited by arjkhanna : 07-06-2009 at 09:54 PM. |
|
#133
| |||
| |||
| If you want any help related with PHP and other web development programming language than search web development in google hear you get best information. |
|
#134
| |||
| |||
| Hello, Thanks to all your information it will very helpful to us... keep it up the good work guys ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Jagged Arrays in C# | vigneshgets | C# Programming | 4 | 09-30-2008 03:48 AM |
| Using arrays in stored procedures | it.wily | Database Support | 2 | 02-09-2008 09:18 AM |
| Classic asp arrays and recordset | ramesh123 | ASP and ASP.NET Programming | 1 | 12-02-2007 07:44 PM |
| Arrays in Java | leoraja8 | Java Programming | 7 | 11-19-2007 12:23 AM |
| Java:Tutorial - Arrays | pranky | Java Programming | 0 | 02-23-2007 11:54 PM |
Our Partners |