I have been rather confused with all the string functions, but haven't found how to do what I want.
In simplicity I want to isolate the current filename (without the extension) so I can assign it to a variable. For example if the file is called "myfile.php", I want "myfile" to be assigned to the variable.
The nearest I got is $_SERVER["PHP_SELF"] which returns something like:
/folder1/subfolder1/myfile.php
but I need to strip off the path and the file extension.
TIA for your help 🆒
3v