Jump to content

[SOLVED] Using include in array


ngreenwood6

Recommended Posts

Is there a way to use an include in array? I am trying to do this:

 

$lang = array_merge($lang, array(
'TERMS_OF_USE_CONTENT'	=> include("terms-of-service.php") ,

 

I have also tried this:

 

$lang = array_merge($lang, array(
'TERMS_OF_USE_CONTENT'	=> '<? include("terms-of-service.php"); ?>',

 

The first one works but when it displays it, it shows up in the background and not within the content. The other one doesnt display anything. Any help is appreciated.

Link to comment
https://forums.phpfreaks.com/topic/161941-solved-using-include-in-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.