I'm sorry because i know that is probably a noob question, but i have so much work to do that i cant finish my PHP learning process.
Let's say i have a variable for the file extension and an array in PHP like that:
$fileExt = ".php";
$mainNav = array(
"page01" => array (
"id" => "value",
"name" => "value",
"title" => "value",
"url" => need same "id" value + $fileExt
),
"page02" => array (
"id" => "value",
"name" => "value",
"title" => "value",
"url" => need same "id" value + $fileExt
),
);
But I like that instead of hard coding the value for "url", it match the value of the key "name" + the file extension that i already have in a variable just in case i need to change it later.