|
-
Sep 27th, 2005, 08:23 PM
#1
Thread Starter
Admodistrator
Few string questions..
First, how can i replace part of a string, in a string? str_replace(just a guess)?
Secondly, how can i determine what the letter is of a character anywhere in a string?
ex:
yaytaweuih
and then i want to find the 5th letter which is a
-
Sep 28th, 2005, 07:34 AM
#2
Lively Member
Re: Few string questions..
Yeah, str_replace() will work, theirs some other alternatives like preg, but the manual can probably explain it better than I, and has some alternative links as well.
str_replace()
For your second question, sounds like substr() is what you're looking for. substr()
-
Sep 28th, 2005, 11:40 AM
#3
Re: Few string questions..
You can also use preg_replace() and preg_replace_callback() to find and replace strings matching regular expressions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|