Re: Re: Xpath arguments in variable
| From: | Pete Ford | Date: | Thu, 16 Sep 2010 08:20:26 +0000 |
| Subject: | Re: Re: Xpath arguments in variable | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308112@lists.php.net to get a copy of this message | ||
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