我有一个像这样的字符串:
../../FolderName$Username$Password
我需要将这三样东西(文件夹,用户名和密码的路径)分成各自的变量,这给我带来了麻烦。
$path = substr($_REQUEST["filename"],0, strpos($_REQUEST["filename"],'$',0)); //Gets the filepath SUCCESSFULLY
$username = substr($_REQUEST["filename"],strpos($_REQUEST["filename"],'$',0),strpos($realtmp,'$',strpos($_REQUEST["filename"],'$',0)));
//Error, can't get the username properly, it is empty so I probably have a syntax error, but in general I don't know how to structure it.
湖上湖