i just need to add in a variable into the xpath my code is as followed
$target = $xml->xpath('//gig[@id=$1]');
but I need it too but something like
$target = $xml->xpath("//gig[@id=$" $change . "]");
Is this possible ?
If so could some one help ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…