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 Link to comment https://forums.phpfreaks.com/topic/116754-how/ Share on other sites More sharing options...
corbin Posted July 26, 2008 Share Posted July 26, 2008 http://us2.php.net/preg_match_all Link to comment https://forums.phpfreaks.com/topic/116754-how/#findComment-600524 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? Link to comment https://forums.phpfreaks.com/topic/116754-how/#findComment-601053 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. Link to comment https://forums.phpfreaks.com/topic/116754-how/#findComment-601137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.