You might expect that echo basename('directory_name/') would return an empty string. Instead, it returns 'directory_name', without the slash.
You might expect that echo basename('directory_name/') would return an empty string. Instead, it returns 'directory_name', without the slash.