Page 1 of 1

Help needed changing values in a string

Posted: Thu Oct 05, 2006 8:47 am
by corillo181
does any one knows how to remove letters from a name..

what i'm trying to do is create thumbnial with a tn_ and then the name of the picture.. i'm looking for something to remove that tn_ and read the name normaly to link it to the real picture..

Posted: Thu Oct 05, 2006 8:49 am
by volka
http://de2.php.net/substr

viewtopic.php?t=8815
GUIDELINES FOR ASKING QUESTIONS
[...]
7. Write a clear subject line, it'll help people deciding whether to look at your post or not - 'help, PHP noob' is probably going to be ignored by some.

Posted: Thu Oct 05, 2006 8:53 am
by corillo181
thank you.

Posted: Fri Oct 06, 2006 1:43 am
by RobertGonzalez
str_replace().

And thanks to volka for pointing this out...
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.