Jump to content

echo64

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by echo64

  1. That's exactly what I was after! Thank you "laffin" and the others for their ridiculously fast help.
  2. Simply because it's the only way I knew how to do what I wanted...
  3. ah ok! Thanks, I'll go have a play with the extract function then!
  4. Hey Thanks for the replies but that section of code (although nothing to do with animals I might add!) is from a much larger script and it needs to stay in the current format. My main issue is having to manually replicate the variables, which is why I was wondering if it's possible to use some kind of wild-card feature within PHP. If something like: "$animal_* = $something_something[$i]['animal_*'];" is possible it would save me hours of work. Perhaps this is not even possible? So just to reiterate - there could be hundreds of animals and I would have to write hundreds of lines to do what I want, but if there was something like my suggestion that actually worked I could do it all in a few lines. Thoughts?
  5. Hello Sorry if this is a really simple question but I have run out of ideas. Is there a really simple way of doing the following: $animal_dog = $something_something[$i]['animal_dog']; $animal_cat = $something_something[$i]['animal_cat']; $animal_cow = $something_something[$i]['animal_cow']; etc, etc, etc Is there a way to simplify the process above so that I could just do: $animal_* = $something_something[$i]['animal_*']; I hope this makes sense and thanks in advance... this would be so handy to know how to do! Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.