AviNahum Posted July 12, 2009 Share Posted July 12, 2009 hey, i wondering if it possible to display all function content in <textarea> and make some changes and save it... for example: <?php function abc() { $a = 5; echo $a; } ?> then i dispaly in <textarea> this: $a=5; echo $a; and then i want to make some changes and save it... possible? Quote Link to comment https://forums.phpfreaks.com/topic/165683-change-function-content-with-form-possible/ Share on other sites More sharing options...
ignace Posted July 12, 2009 Share Posted July 12, 2009 Yes, however you will need eval() to re-create the function Quote Link to comment https://forums.phpfreaks.com/topic/165683-change-function-content-with-form-possible/#findComment-873974 Share on other sites More sharing options...
.josh Posted July 12, 2009 Share Posted July 12, 2009 or you could have it in its own file and in your script include or require it. Quote Link to comment https://forums.phpfreaks.com/topic/165683-change-function-content-with-form-possible/#findComment-874003 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.