i have been trying to get variables into my url, but at certein instances if i give a variable like "reg" it prints the "®" sign insted of reg
following is my code
$mainScript = new Main();
$Variables = $mainScript->FromProject($ID);
echo "print 1"."<br/>";
print_r($Variables);
echo "<br/>";
$urls = concat($Variables);
echo "print 2"."<br/>";
print_r($urls);
echo "<br/>";
foreach ($urls as $url){
echo "<PRE><img src='https://mytrackKit.test.com/"."rd?track=$ID&$url' ></img></PRE>";
}
the echo
print 1
Array ( [a] => Array ( [0] => a=SSS ) [ar] => Array ( [0] => ar=A [1] => ar=B [2] => ar=C [3] => ar=D ) [reg] => Array ( [0] => reg=1 [1] => reg=2 ) )
print 2
Array ( [0] => a=SSS&ar=A®=1 [1] => a=SSS&ar=A®=2 [2] => a=SSS&ar=B®=1 [3] => a=SSS&ar=B®=2 [4] => a=SSS&ar=C®=1 [5] => a=SSS&ar=C®=2 [6] => a=SSS&ar=D®=1 [7] => a=SSS&ar=D®=2 )
<img src='https://mytrackKit.test.com/rd?track=103&a=SSS&ar=A®=1'></img>
can anybody help me to get rid of this trademark R sign
® is html entity character for Registered sign, you can escape it by escaping the & character using & so what you need is &reg.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With