Rob
I didn't get the orig post but
\t is right, in php escape sequences are replaced in double quote (and
heredoc) delim strings so
if ($a == "TAB\nTAB") {
....
}
note you can use the chr() function as well (ie for non escapable chars)
The control escapable chars are \r, \n, \t, others are \\, \", \', \$
if ($a == 'TAB'.chr(9).'TAB') {
....
}
Heredoc is really good for multiline strings is SQL statements
$S = <<<SQL
SELECT Column
FROM Table
WHERE
ID = '$ID'
SQL;
> "\t"
>
>> Hi
>>
>> I am re writing a Delphi SOAP server in php. I am doing ok so far
>> (for my first PHP app !). Anyway I want to compare a string with
>> special chars.
>>
>> In Delphi I have something like if (a = 'NULL' + #9 + 'NULL') then
>> begin ....
>>
>> essentially my string is two NULL words with a separating tab. How to
>> I access the tab key in php ?
>>
>> Thanks
>>
>>
>> --
>>
>> /Robert Martin/
>>
>> /Software development manager/
>>
>>
>>
>> Chreos
>>
>> www.chreos.co.nz
>>
>> Ph +64 03 377-0495
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> NZ Borland Developers Group Offtopic mailing list
>> Post: [email protected]
>> Admin: http://delphi.org.nz/mailman/listinfo/offtopic
>> Unsubscribe: send an email to [email protected] with
>> Subject: unsubscribe
>>
>
> _______________________________________________
> NZ Borland Developers Group Offtopic mailing list
> Post: [email protected]
> Admin: http://delphi.org.nz/mailman/listinfo/offtopic
> Unsubscribe: send an email to [email protected] with
> Subject: unsubscribe
>
>
>
_______________________________________________
NZ Borland Developers Group Offtopic mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/offtopic
Unsubscribe: send an email to [email protected] with
Subject: unsubscribe