shunyata Posted March 14, 2008 Share Posted March 14, 2008 This works fine: $content[0] = "string"; $content[1] = "this is a {$content[0]}"; $content[2] = "this is a {$content[0]} saying that {$content[1]}"; Suppose however that i cannot control the order of these declarations. Is there a way to delay variable expansion until a time of my choosing? I could of course use eval() to convert from single to double quoted, but again I would have to do that in the right order for recursive expansion. Grateful for any comments. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.