|
Posted by Aphrael on 09/19/05 19:30
hougie40@hotmail.com a écrit :
> Im a vb guy trying to figure out some php.
>
> For some reason it wont let me append these together.
>
> $variable = "test";
>
> echo "c:\websites\menu\" . $variable;
>
> dont understand...please help.
Ho, you do tell him to consider the final " as a text " instead of the
end of the string... (\ is the escape caracter...)
You just need to tell him it is the \ you want to escape... echo
"c:\websites\menu\\" . $variable;
By the way, isn't variable a reserved word ?
Aphrael...
--
"La demande mondiale d'ordinateurs n'excédera pas cinq machines."
(Thomas Watson, Fondateur d'IBM, 1945)
Navigation:
[Reply to this message]
|