when embedding a PHP variable within a set of PHP code, such...

<?php include("../folder/navfile_$variableA_$variableB.inc"); ?>


...i am running into problems. it thinks that the underscore after "variableA" is part of "variableA" and then throwing it out because it doesn't recognize it.


i have tried replacing the underscores with periods and dashes and it works, so know that it is simply a problem of PHP thinking that the underscore is part of the variable.

so... is there some sort of a "break" character that i need to use to tell it where the variable name ends?

...or is it just not good to use underscores and variables next to each other like that?

-wade preston


____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to