Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 保存ckeditor图像kcfinder。但我只想在保存时保存文件名。不是src='/dir/dir/file.jpg'但是src='file.jpg'。我不知道从哪里开始寻找这样的功能。
ckeditor
kcfinder
src='/dir/dir/file.jpg'
src='file.jpg'
你试过substr吗?所以$filename = substr($src, strrpos($src, '/'));
$filename = substr($src, strrpos($src, '/'));