I have
$amount=trim($amount);
echo $amount ;
echo nl2br("\n\n");
$first_character=substr($amount,0,1);
// Get the substring starting at the 0th position (-first character) and outputting a string 1 character long
echo $first_character ;
If $amount is 654 then the code produces 654 followed by first charcter 6, all very nice, BUT
if $amount is £654 then the code produces £654 but does not echo any first character
How should I re-write this code, please ?