is it possible to parse php within a string e.g.
$a = "hello world <?php function($a,$b,$c); ?>";
just an idea i had, not sure if there is a way to 'extract' and process php sections?
any help would be much appreciated. 🙂
There is [man]eval/man, but it is to be used with extreme caution. Why do you want to parse strings containing PHP code anyway?
i thought then i could store dynamic information in mysql... e.g. ...plain text plain text... php widget ...plain text etc. more curiocity than anything
Yeah i do that for a site i have, done... The site is content based, and all the pages are held in a MySQL database, however on some pages i do need have echo statements here and there. So use eval().