I have problem maybe someone has a
solution....something like variables within variables.

I have a very long string composed of a number of
variables. for examples

$a= "do"
$b= "do"
$sting= $a." find the info then $b this and that
then".$a." the report";

The problem is the value of $a may change to $a="don't
do " 

I cant use str_replace or ereg_replace becuase I don't
want to change the second do in the above string, the
$b variable. An additional problem is that there are a
number of variables that make up the string, some may
change some may not and some appear at differnt points
in the script.

Is there some way...I don't know, is there something
like a variable placeholder..I mean so that $string =
$a." etc etc etc" but $string doesn't take the value
of $a only that the variable $a exists as part of the
string and if the variable $a changes then the final
value of $string will reflect the new value of $a.


Anyone have any vague idea of what I mean or how to
accomplish this. Right now I'm using arrays to keep
track of the string parts and then the script
assembles the string at the end.

It's an awful lot of code. It would seem there is a
better way.  

rm

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to