añadiendo variable php a Xpath
solo necesito agregar una variable en la xpath mi código es el siguiente
$target = $xml->xpath('//gig[@id=$1]');
pero también lo necesito pero algo así
$target = $xml->xpath("//gig[@id=$" $change . "]");
Es posible ?
Si es así, ¿alguien podría ayudar?