<?php // €; $v = htmlspecialchars("€", ENT_SUBSTITUTE);$x = htmlspecialchars_decode($v); var_dump([$v,$x]);
Standard input is empty
array(2) { [0]=> string(3) "€" [1]=> string(3) "€" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!