View Single Post
Old 01-27-2008, 08:17 AM   #2 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by sarmenhb View Post
if i wrote something like this

Code:
<?php

function names($fname,$lname,$mname)
{

return array( '$FirstName' => '$fname',
	      '$LastName' => '$lname',
	      '$MiddleName' => '$mname');
}

names('sarmenhb','sarmenhb','sarmenhb');
names('a','b','c');
names('c','d','e');

?>

how can i output what the names function contains or how can i make use of this.

im beginning to think that arrays can be similar to ram like a temporary database or information storage that is volatile

What are you trying to do? You should make that a var then iterate the variable using foreach, and return the new iterated var. Otherwise it'll just output "Array"
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote