Pardon my ignorance, I'm not much of a coder. I tinker, but that's about it.
Anyhow, as the title suggest I am having a problem loading a variable inside of an array. Or better yet, setting the value of the array from a variable. I'm not sure if that makes sense so I'll just show examples:
Below is what I am trying to accomplish, I want to define the $links variable inside config.php
PHP Code:
.
.
.
@require("config.php");
$okfiles = array($links);
.
.
.
However, that does not work.
PHP Code:
.
.
.
@require("config.php");
$okfiles = array('link1','link2','link3','etc');
.
.
.
This works, and is how I currently have it setup but it's not what I want.
Make sense?