replacements


Posted on 16th Feb 2014 07:03 pm by admin

I have a variable in my PHP script like

ASSFDDDDDDDDDDDDDASDDDDDDDDARYTRHKKHHHHHHHHHHH and positions 5-10

Did you know?Explore Trending and Topic pages for more stories like this.
I want to replace these positions with another color .

$newpat="<font color=blue>$pat</font>";

can someone tell me what function to use and how, I tried string_replace, but didn't work. I did not know hoe I could tell it to replace specific positions and multiple at a time.
No comments posted yet

Your Answer:

Login to answer
264 Like 15 Dislike
Previous forums Next forums
Other forums

Bandwidth monitoring?
Hi guys,

I need a little information I have written a php app and I occurred to that I need

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

PDO returns erroneous columns from within pdt
Hi All,

This is a truly weird behavior:
When using a simple pdo fetch, erroneous columns a

How to change Time Zone
HI
I want to change the time zone of the server to another country.How can do that?

Thanks

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

mySQL and PHP search
Hello,
I am trying to code a project and ran into a brick wall with one of my pages. I am pretty

php libs/ browsercap.in
ok i have a host that refuses to stay current. they control my php settings and libs. is there a way

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash