waplet Posted October 17, 2009 Report Share Posted October 17, 2009 Kā lai ar kādu no funkcijām nogriez pēdejos četrus symbolus? aka ja ir index23123.rtf rādīsies tikai index23123 utt Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 17, 2009 Report Share Posted October 17, 2009 echo substr("index23123.rtf", 0, -4); //izvadīs: index23123 , bet ja tev vajag dabūt tikai faila nosaukumu (bez paplašinājuma), tad skaties te: http://uk2.php.net/basename Quote Link to comment 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.