Hello,
I have the following code, I am wanting $showing to be broken up and displayed in my imagettftext statement below. This works fine untill i put in the hash character - #
<?php
$showing = "F#,A#,B,C,D#,f#";
$showing = explode(",", $showing);
echo $showing;
// This will echo correctly, showing hash characters.
echo $showing[0];
// This will also echo correctly, showing hash character.
// Included in another page, referenced by <img> is the following.
// The variables are being passed correctly as everything will work
// untill i use a hash symbol.
// The output will be correct untill the hash character is printed.
imagettftext($img, 12, 0, 0, 10, $black, "tahoma.ttf", "$showing[0]");
// I have tried the following as well, with the same result.
$replace_hash = "#";
// # = decimal ISO Latin-1 Character Set for hash
$showing = preg_replace('/#/', $replace_hash, $showing);
// but if i use ..
$replace_hash = "$";
//this will correctly return $ (replacing #).
?>
So whats the deal with the hash character ?
Thanks in advance ...