Replace a character in a string variable
Hi group -
I have a variable which is created from an input form.
After concatenating the input I want, I end up with a variable named
$all which looks like this :
delegatecountry,delegatefname,delegatelname,delegatebname
I want to take this string and replace all the commas with this :
</th><th>
So - I tried this :
$inside="</th><th>";
$newall = str_replace($inside, ",", $all);
But - it doesn't work.
http://ca3.php.net/str_replace
What am I doing wrong ?
.
Relevant Pages
- Re: Replace a character in a string variable
... I have a variable which is created from an input form. ... After concatenating the input I want, I end up with a variable named ... First 2 parameters the wrong way round, ... :) no prob! ... (comp.lang.php) - Re: Replace a character in a string variable
... I have a variable which is created from an input form. ... After concatenating the input I want, I end up with a variable named ... I want to take this string and replace all the commas with this: ... First 2 parameters the wrong way round, ... (comp.lang.php) - Re: Replace a character in a string variable
... I have a variable which is created from an input form. ... After concatenating the input I want, I end up with a variable named ... I want to take this string and replace all the commas with this: ... First 2 parameters the wrong way round, ... (comp.lang.php) - RE: Open form On not in list
... However, when I open the input form, the field on the main form remains popped open so I can't modify it or requery it so the new value shows up. ... > Dim strMsg As String, strFName As String, strLname As ... > Dim vbResponse ... (microsoft.public.access.modulesdaovba) - Open form On not in list
... Dim strMsg As String, strFName As String, strLname As ... String, strListType As String ... Dim vbResponse ... my input form, because Access is trying to make me choose ... (microsoft.public.access.modulesdaovba) |
|