I am trying to save an image with ckeditor
, using kcfinder
. But I want to save only the filename on save. Not src='/dir/dir/file.jpg'
but src='file.jpg'
.
I do not know where to start looking for such a function.
Have you tried substr? So $filename = substr($src, strrpos($src, '/'));