adding php variable into Xpath

BigDog56

New Member
i just need to add in a variable into the xpath my code is as followed\[code\]$target = $xml->xpath('//gig[@id=$1]');\[/code\]but I need it too but something like \[code\]$target = $xml->xpath("//gig[@id=$" $change . "]");\[/code\]Is this possible ? If so could some one help ?
 
Back
Top