lordzardeck Posted February 21, 2009 Share Posted February 21, 2009 How would you use php to determine if a file name contains a letter? For example, I want to load only classes that contain "P" before the class name. How would I do that? Link to comment https://forums.phpfreaks.com/topic/146274-determine-if-file-contains-letter/ Share on other sites More sharing options...
lordzardeck Posted February 21, 2009 Author Share Posted February 21, 2009 Actually, I solved that. Now I need to know how to strip a string containing a file name of its extension. For example, I need to take a string containing "class.php" and convert it to "class". Link to comment https://forums.phpfreaks.com/topic/146274-determine-if-file-contains-letter/#findComment-767942 Share on other sites More sharing options...
Mchl Posted February 21, 2009 Share Posted February 21, 2009 explode it on dot Link to comment https://forums.phpfreaks.com/topic/146274-determine-if-file-contains-letter/#findComment-767945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.