unidox Posted July 26, 2008 Share Posted July 26, 2008 I was wondering how I would go about doing something like this: {title}lala{/title} Thats what smarty uses, and I was wondering how I can do the same thing using php + regex. I know how to replace the {title}{/title} with <title></title>, but I just dont know how I can retrieve lala, or a string inside a specified tag. Thanks Quote Link to comment Share on other sites More sharing options...
corbin Posted July 26, 2008 Share Posted July 26, 2008 http://us2.php.net/preg_match_all Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted July 27, 2008 Share Posted July 27, 2008 Why not just do <title>lala</title> in the first place? Quote Link to comment Share on other sites More sharing options...
unidox Posted July 27, 2008 Author Share Posted July 27, 2008 Its for a template, then the user who codes the template can set variables. 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.