quote
| From: | davidt | Date: | Fri, 13 Oct 2000 17:54:12 +0000 |
| Subject: | quote | ||
| Groups: | php.general php.general | ||
| Request: | Send a blank email to php-general+get-65143@lists.php.net to get a copy of this message | ||
php-general -
how to quote the value of the variable? I am looking for function it is something like
$testvar=false
quotefunc($testvar);
now the value is "false"
This failed....
$boo=false;
exec("sed -e s/$boo/true/g $pathfile > $newfile")
So i replace $boo value with
$boo="false"; <--- add " "
and it works.
davidt
mailto:davidt@aspsaic.com