Escape it.

$string = "\\";

Or, use single quotes:

$string = '\';


On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote:
> hello, 
> 
> 
> how can i put the character \ in a variable ?
> 
> I've done the code below but errors occurs : 
> 
> $barre_oblique = "\";
> 
> 
> Parse error: parse error, unexpected T_STRING 
> 
> Please help !!!!
-- 

Adam Voigt
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to