Forum Moderators: coopster
foreach ($_COOKIE['best'] as $name => $value) {
$best = urlencode($value);
echo //insert code here
}
}
Thanks,
This is not an urgent post for once. :) If there's a good resource out there for semi-beginners like me please let me know.
arrays will adjust to remove blank elements, though that depends on whether you are using associative or numeris keys. I think for numeric it can/does leave blank values.
you can sort arrays any way you like
what I do when I am looking at what I can do with a specific type, in this case arrays, I go to main page for that section in the manula and read through the descriptions of each function. If there is anything interesting then I read the page for the function
[php.net...]
wandering through the functions will probably prove to be very fruitful
there are a ton of sorting functions, they are all a little different and can be used in many different ways so playing around with them and seeing the variations is good.
you also might see some functions that you didn't know were there ;)
for values use in_array and for keys use array_key_exists