Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Arrays

Status
Not open for further replies.

mirfan

Programmer
Feb 4, 2005
13
PK
Hi

$_year = "2005";
$_month = "02";
$_day = "25";

$begin[0] = "'year' =>" . $_year";
$begin[1] = "'month' =>" . $_month ;
$begin[2] = "'day' =>" . $_day;

Please tell me that, the above code is correct or not..if not how can i make it corrent..as i want to make it in the same way..(try to assign dynamic values to an array along with their refferences.

Thanks
 
would this be what you are trying to do?
Code:
$begin[0] = array ("year"=>$_year, "month"=>$_month, "day"=>$_day);
print_r ($_begin[0]);
 
Hi..
No its not working...as i try to print it...no resut...
Help again...
Thanks
 
sorry.
replace the second line with
Code:
print_r($begin[0]);
i.e. there was an underscore before the begin...

Justin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top