darksniperx Posted October 21, 2007 Share Posted October 21, 2007 <?php $name = 'Entry'; include 'test.php';-> I would like to change it to-> include '$name.php'; show.$name.(); ?> I would like to automate my php code and reduce at the same time. I pass one variable that contains text value, so that php would use that variable name inside include and function name. It should be possible? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.