Я видел этот код
if (is_null($$textVarName)) { $$textVarName = $_defaultTexts[$type]; }
что такое код «$$»?