Okay, this is somewhat annoying but I need to escape backslashes to make something look nice.
[PHP]
<?php
if ($mesgread[0]=="/" AND $user!=$otherus er) {
$action=explode (" ", $msg, 2);
$_SESSION['chat']=$_SESSION['chat'].$action[1]."<br>";
echo $META
}
[/PHP]
This all works fin and dandy but when I go to echo the $_SESSION['chat'], backslashes appear before quotes.. Say $action[1]="This said "STUFF" and disappeared" it would end up echoing "This said \"STUFF\" and disappeared".
[PHP]
<?php
if ($mesgread[0]=="/" AND $user!=$otherus er) {
$action=explode (" ", $msg, 2);
$_SESSION['chat']=$_SESSION['chat'].$action[1]."<br>";
echo $META
}
[/PHP]
This all works fin and dandy but when I go to echo the $_SESSION['chat'], backslashes appear before quotes.. Say $action[1]="This said "STUFF" and disappeared" it would end up echoing "This said \"STUFF\" and disappeared".
Comment