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

Web Host List
Here is a list of web hosts that offer PHP and MySQL. It is no where near a full list, but it is mos

HTML Email rec'd as Source Code
The code does create and send the email successfully. However, the message shows as html code and n

Multi-image upload problems
Lets see if I can get some help on this one. Can anyone show me what I am doing wrong here. I'm just

Parse Error with doctype
I'm getting a parse error with this simple code. I don't get it. It worked one time then when I relo

Facebook status update API
Hello,

So, I'm trying to create my first Facebook application with PHP.

Basic ideas fo

some query on multilingual website
Hi all,

Which is the simplest and easiest method to make a website multilingual,
is it put

Need help to modify php ELSE code
I'm trying to find a way to have the php code display a message if there is no inventory listed in t

socket makes browser hang...
I have a socket server, and I am having a problem at the moment...

A browser sends a http hea

include
Hi I have this way of licensing my PHP application, and I want to know if you guys can answer some q

need Array help
This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Gian

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