Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Help with Str replace



6:04 am on Dec 15, 2010 (gmt 0)

10+ Year Member

i have the following 2 arrays that i am looking to replace variables from. However my problem is how to tell to not replace variables that are in %XX format. Right now 0 will get replaced with %30, and this will then again get replaced with %%330 (replaced 3 with %33). Any help greatly appreciated. Thanks




[edited by: coopster at 2:03 pm (utc) on Dec 15, 2010]
[edit reason] fixed sidescroll [/edit]


3:47 pm on Dec 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

My advice would be to simply create a function that will translate the data variables one at a time, rather than trying to create an elegant one-line wonder.

Featured Threads

Hot Threads This Week

Hot Threads This Month