Thanks Neven

As you see I am taking your suggestion from the Delphi list 'refactor it'.  I have one other question you might be able to answer...

I need a wsdl for for my soap server.  It seems I need to manually create one with Php.  However I have my delphi soap server that automatically creates a wsdl.  Sooo since I already have one from my delphi app, and since the functions and data classes are the same, I can use that wsdl with my PHP soap server?

Thanks



Robert Martin

Robert Martin

Software development manager

 

Chreos

www.chreos.co.nz

Ph +64 03 377-0495

 

 

 



Neven MacEwan wrote:
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

  
_______________________________________________
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

Reply via email to