Reputation: 141
I have this XML string.In which i had concatinate some variables in it.i just want to clarify that when these variable change,does values in XML string also change or not?
<?php
$nvpstr="
<Source>
<Company>".$company."</Company>
<LeadId>".$leadid."</LeadId>
<IpAddress>".$IP."</IpAddress>
</Source>";
?>
and is it a true XML to be sent via POST considering that format they provided is this.
Upvotes: 1
Views: 75
Reputation: 1300
if you change those variables AFTER that block they wont.
or in simple:
$a = 'foo';
$b = 'my $a is: '.$a;
$a = 'bar';
wont change $b
to 'bar'
and an echo $b;
will print out my $a is: foo
Upvotes: 1