I am trying to separate this: mydomain\myname
To do this I am using the explode function as such:
$word = "mydomain\myname";
$separated = explode("\", $word);
echo $separated[0];
echo $separated[1];
However, the backslash does not work. Is there a way to explode backslashes?