I kow this is a bit of a cludgy situation and there are much more elegant ways to organize data, but this is a leftover from an older program I'm helping someone convert all their content from...
What I have is a LONG list of variables all containing either paragraphs of text or images. They're named in a manner similar to this:
$fred1 = '....';
$fred2 = '....';
$fred3 = '....';
$fredImg1 = '....';
$fredImg2 = '....';
$Joe1 = '....';
$Joe2 = '....';
$Joe3 = '....';
$JoeImg1 = '....';
$JoeImg2 = '....';
And so on....
What I'm trying to figure out is how to write something that will look at that massive list of variables and ONLY select out 'fred' variables for instance. I can't figure out a simple way of doing it in a simple manner.
Anyone have any ideas?
Thanks,
-Mike