Having an array, I want to call a value giving a key within the same array!
In my following example, I have tried to call a particular value giving the key 'default' within the same array, but without success! Is it possible to do that in PHP? Here is my array:
$inc_folders = array(
'default' => "def_folder",
'file' => $inc_folders['default'] . "/textfile.txt"
);
calling the value in $inc_folders['file'], I would want the result be the following: "def_folder/textfile.txt"; but I obtain an error!
Please, can you help me to resolve that?
Many thanks!