| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| replacing charecters in php | |
|---|---|
| Tweet Topic Started: Mar 30 2005, 03:41 PM (231 Views) | |
| kingy | Mar 30 2005, 03:41 PM Post #1 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Me again Is their a way, in php, of taking a variable containing "hello world" and turning it into "hello_world" Thanks Kingy |
![]() |
|
| Rory | Mar 30 2005, 03:43 PM Post #2 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm not sure if this is the best way to do it, but the first example seems to do what you want: http://uk.php.net/manual/en/function.preg-replace.php edit: this seems to be the better one: http://uk2.php.net/str_replace so:
|
![]() |
|
| kingy | Mar 30 2005, 03:55 PM Post #3 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
thankyou very much |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
8:51 PM Jul 10
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)



8:51 PM Jul 10