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 Quote 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... Quote 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 Quote 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!"... Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.