|
Posted by badr on 09/21/05 01:42
actullay no need for blaming any 1
the correct way is
- to escape the last backslash:
$var="test";
echo "C:\web\menu\\".$var;
---------------------------------------------
the optimum solution for the case is :
$var='test'; //singl qoutes
echo 'C:\web\menu\\'.$var; //singl qoutes
---------------------------------------------
in double qutes PHP will seek for some varaiable inluded with a string
so in first solution you may make it like :
$var="test";
echo "C:\web\menu\\$var";
Navigation:
[Reply to this message]
|