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...
On Thu, Sep 16, 2010 at 1:20 AM, Pete Ford p...@justcroft.com wrote:
On 15/09/10 18:00, David Harkness wrote:
$v = $row-xpath(//membernumber[. = \$MemberId\]);
Oooh, I hate using backslashes - they always seem so untidy...
I have a pathological fear of sed scripts, too. :(
And yet I find
Original Message
Subject: Re: Xpath arguments in variable
From: php-gene...@garydjones.name (Gary)
To:
Date: Wed Sep 15 2010 13:34:11 GMT+0530 (IST)
Whats wrong with
$v = $row-xpath('//membernumber[. = ' . $MemberId . ']');
?
Am I not understanding what you are trying to ask
On Wed, 2010-09-15 at 14:03 +0530, Sridhar Pandurangiah wrote:
Original Message
Subject: Re: Xpath arguments in variable
From: php-gene...@garydjones.name (Gary)
To:
Date: Wed Sep 15 2010 13:34:11 GMT+0530 (IST)
Whats wrong with
$v = $row-xpath('//membernumber
:
Original Message
Subject: Re: Xpath arguments in variable
From: php-gene...@garydjones.name (Gary)
To:
Date: Wed Sep 15 2010 13:34:11 GMT+0530 (IST)
Whats wrong with
$v = $row-xpath('//membernumber[. = ' . $MemberId . ']');
?
Am I not understanding what you are trying to ask
Managed to resolve it. Phew!
$v = $row-xpath('//membernumber[. = ' . '' . $MemberId . '' . ']');
works.
Best regards
Sridhar
Original Message
Subject: Re: [PHP] Re: Xpath arguments in variable
From: a...@ashleysheridan.co.uk (Ashley Sheridan)
To:
Date: Wed Sep 15 2010 14
On Wed, 2010-09-15 at 14:27 +0530, Sridhar Pandurangiah wrote:
Managed to resolve it. Phew!
$v = $row-xpath('//membernumber[. = ' . '' . $MemberId . '' . ']');
works.
Best regards
Sridhar
Original Message
Subject: Re: [PHP] Re: Xpath arguments in variable
From
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.
8 matches
Mail list logo