cokacola
11-10-08, 04:57 PM
yay for arrays lol, wanna see how they work? -.^
ok,here is how you create an array and then use the array
<?php
//create an array
$myarray = array(
'dt1' => 'data1',
'dt2' => 'data2'
);
//make it say something or sumtin
echo "<p>".$myarray['dt1']."</p>";
//make it display the info on the array(i think its print_r, if I am wrong, I will correct it later :P
print_r $myarray;
//wasn't that fun kiddies!(lol)
?>
was it for or not? enjoy!
ok,here is how you create an array and then use the array
<?php
//create an array
$myarray = array(
'dt1' => 'data1',
'dt2' => 'data2'
);
//make it say something or sumtin
echo "<p>".$myarray['dt1']."</p>";
//make it display the info on the array(i think its print_r, if I am wrong, I will correct it later :P
print_r $myarray;
//wasn't that fun kiddies!(lol)
?>
was it for or not? enjoy!