General Question
How can I create a special character in PHP from a variable?
Asked by Vincentt (8094)
November 16th, 2007
Hi,
In PHP, if I have
$var = ‘AA’;
I want to be able to achieve the same result as I would have when doing
echo ”\xAA”;
Which would output ª
I tried doing
echo ”\x$var”;
But that only literally outputted the string (\xAA), instead of ª what I wanted. Any ideas how I can do it?
Thanks.
Observing members:
0
Composing members:
0
3 Answers
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.
Have a question?
Ask Fluther!