This is the file with the variable I want.
# pt/lang.php
<?PHP
$rp_lang = "pt";
?>
This is the file that I want to insert but I want the variable to change the end to either "en" or "en" or any other.
# inc/saudacao_pt.php
<?PHP
$rp_saudacao = "Olá bom dia";
?>
This is the file that is made public.
# pt/index.php
<?php
include_once '../pt/lang.php';
include_once '../inc/saudacao_".$rp_lang.".php';
?>
Replacing ".$rp_lang."
with "pt" works perfectly.