String operations

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
VitDavide
Forum Newbie
Posts: 3
Joined: Wed Dec 23, 2009 3:58 am

String operations

Post by VitDavide »

Hello guys,

i need to know how to remove a certain part of a string in PHP:

i have a string that shows a path instead of a title: articles/post.txt

i want to remove what is before the slash and after the dot (with that slash and the dot included).

Thank you!
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: String operations

Post by daedalus__ »

Post Reply