Echo Print / Help Me


Echo Print / Help Me

Echo Print出现问题/

我的代码是:
<form  action="" method="post">
<input type="text" name="hh">
<br>
<input type="submit">
</form>
<?php
$hh=$_POST[hh];
echo $hh;
?>

I'm enter In form

INSERT INTO `cq_action` VALUES ('5846', '5847', '5848', '0101', '0', 'H3');

东西

INSERT INTO `cq_action` VALUES (''5846'', ''5847'', ''5848'', ''0101'', ''0'', ''H3'');

I need delete ' In output Please Help Me

使用json_decode()解码转义字符。您可以使用str_replace(''', ",$str)来删除'字符或任何其他字符。