Re: Re: Xpath arguments in variable
| From: | David Harkness | Date: | Wed, 15 Sep 2010 17:00:48 +0000 |
| Subject: | Re: Re: Xpath arguments in variable | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308106@lists.php.net to get a copy of this message | ||
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.