Skip to content

How to get page name in PHP?

echo basename($_SERVER['PHP_SELF']); /* Returns The Current PHP File Name */
See also  Java code snippet - How to covert array into a char?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.