On 15/09/10 18:00, David Harkness wrote:
And let's not forget

$v = $row->xpath("//membernumber[. = \"$MemberId\"]");

The \" inside the string turns into a double-quote and using " to delimit
the string allows for variable substitution.


Oooh, I hate using backslashes - they always seem so untidy...
I have a pathological fear of sed scripts, too. :(


--
Peter Ford, Developer                 phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd.                              www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent   TN12 0AH   United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS

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

Reply via email to