01-27-2008, 08:30 AM
|
#4 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by sarmenhb
im reading this book and its starting to talk about OOP and its relation functions to classes and it showed that example.
i thought it was pretty cool. and wondered how i can make use of it.
|
you could try multidimensional arrays
PHP Code:
function array_multidim() { $array = array( array( 0 => "Hello World!" ) ); // Iterative Construct foreach ($array as $a => $data) {
return $a[$data]; } }
__________________
VillageIdiot can have my babbies ;d
|
|
|
|