我在 filezilla 通过名为 FTP 的 FTP 客户端连接到服务器时遇到问题。
当我尝试连接到服务器时,我正在关注
Status: Connecting to xxx.xxx.xxx.xx:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.4a Server (ProFTPD) [xxx.xxx.xxx.xx]
Command: USER username
Response: 331 Password required for password
Command: PASS **********
Response: 230 User username logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: MFMT
Response: TVFS
Response: UTF8
Response: MFF modify;UNIX.group;UNIX.mode;
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response: LANG ko-KR;it-IT;ja-JP;ru-RU;bg-BG;zh-CN;fr-FR;zh-TW;en-US*
Response: REST STREAM
Response: SIZE
Response: 211 End …Run Code Online (Sandbox Code Playgroud) 我想从结尾的字符串中删除字符串.
例如,我有一个PHP字符串变量"SomeText1|SomeText2|SomeText3|SomeText4|SomeText5|SomeText6",我想"SomeText1|SomeText2|SomeText3|SomeText4|SomeText5"在PHP中的值.
我尝试使用strrpos()以获得最后一次出现"|"我的索引现在我被困在如何进一步处理
每当我想要字符串排除最后一次出现的"|" 然后是文字.