I have one parameter every time it comes from the request object in a standard order,I want to store that string into an array by splitting \for that i am using explode function it's throwing an error,please help me to explode with backslash
$obj = "App\Http\Data\User";
$array = explode("\",$obj);
"\\"to encode a backslash in a string.` So,$array = explode("\\",$obj);$array = explode("\\",$obj);