kmt51
New Member
Posts: 11
|
Post by kmt51 on Oct 2, 2012 11:38:08 GMT -5
Any one else having problems using this function?
I have
str_replace("INFSCI", "Information Science", $myString);
and
echo $myString;
and it still prints the original string without the changes from str_replace. Do I need to return it as a different string or... whats up here. php manual didn't give me any other ideas, nor did the ppt slides.
|
|
kmt51
New Member
Posts: 11
|
Post by kmt51 on Oct 2, 2012 11:40:57 GMT -5
sigh... writing the previous message gave me an idea. so I just changed it to:
$str = str_replace("INFSCI", "Information Science", $myString);
and then
echo $str;
and THAT worked fine.
*facepalm*
|
|
pae6
New Member
Posts: 4
|
Post by pae6 on Oct 2, 2012 18:40:35 GMT -5
|
|