How can I obtain the HTML entity numbers corresponding to characters (including text)? how can PHP obtain the HTML entity numbers corresponding to characters (including text), as shown in
Number 3 corresponds to 3
Reply to discussion (solution)
$ S = 'Excuse me, how does PHP obtain the HTML entity number corresponding to characters (including text), for example, number 3 corresponds to 3'; echo '&#'. join ('; & #', unpack ('C * ', $ s )). ';';
C. copyright £ ;*****************************************************************©Please refer to ~~ózäzähtml {μ {±?
Note the differences between character sets
No, it should be unified into unicode encoding
$ S = iconv ('gbk', 'ucs-2', 'how does PHP obtain the HTML entity numbers corresponding to characters (including text, for example, number 3 corresponds to 3 '); echo '&#'. join ('; & #', unpack ('n' * ', $ s )). ';';
How does PHP obtain the HTML entity numbers corresponding to characters (including text), for example, 3 corresponds to 3
No, it should be unified into unicode encoding
$ S = iconv ('gbk', 'ucs-2', 'how does PHP obtain the HTML entity numbers corresponding to characters (including text, for example, number 3 corresponds to 3 '); echo '&#'. join ('; & #', unpack ('n' * ', $ s )). ';';
How does PHP obtain the HTML entity numbers corresponding to characters (including text), for example, 3 corresponds to 3
Why is UNICODE encoded in a unified manner? will the selection of language families on my page be affected?