PROBLEM I am trying to make a string where the values are normal characters as well as HTML encoding.
How can I create a string that is part Character and part Encoding?
FOR EXAMPLE I want to make an array of the cards A,2,3,4,5,6,7,8,9,10,J,Q,K of Hearts or ♥ in HTML encoding.
I have tried the following in various forms to no avail...
$hearts = array("A♥","2♥", etc);
I have also tried to use the HTML encoding of the letters themselves but it returns an error as unexpected code.
RESOLVED The code as is above will work. Error was due to incorrect " symbols in original php. BUT see selected answer and comments for information on UTF-8 usage in php.