graham23s Posted September 22, 2007 Share Posted September 22, 2007 Hi Guys, just a quick question on this code: $ext = substr(strrchr($fileName, "."), 1); i know what the code does up untill the point where it says: , 1 i have seen this in a few bits of code but don't know what it does ill like to know lol i anyone could tell me thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/70270-solved-question-on-getting-a-file-extension/ Share on other sites More sharing options...
rarebit Posted September 22, 2007 Share Posted September 22, 2007 http://uk3.php.net/manual/en/function.substr.php Notice the search box at the top of the page, very useful... Link to comment https://forums.phpfreaks.com/topic/70270-solved-question-on-getting-a-file-extension/#findComment-352921 Share on other sites More sharing options...
graham23s Posted September 22, 2007 Author Share Posted September 22, 2007 ah i see that was part of the substr function.. thanks mate:) i guess Graham Link to comment https://forums.phpfreaks.com/topic/70270-solved-question-on-getting-a-file-extension/#findComment-352927 Share on other sites More sharing options...
rarebit Posted September 22, 2007 Share Posted September 22, 2007 Didn't you learn that little bit more, as a wise man once said, "The more you know, the more you need to know!"... Link to comment https://forums.phpfreaks.com/topic/70270-solved-question-on-getting-a-file-extension/#findComment-352928 Share on other sites More sharing options...
graham23s Posted September 22, 2007 Author Share Posted September 22, 2007 lol i did indeed RB, just when you think you have a certain area down it leads to a whole new learning curve lol cheers mate Graham Link to comment https://forums.phpfreaks.com/topic/70270-solved-question-on-getting-a-file-extension/#findComment-352931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.