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

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

How to use Ajax to verify data on a DB ?
Hello everyone, well i want to know how to check a value if it exists or not on a Data base and capt

PHP Tab Control
Hi All,

I would like to have PHP tab control with/without Javascript.

But I want to r

! = ''
In the following 'IF' statement if v_ompcat = PU for example then Oracle equates that 'IF' statement

same querie, or a new one??
Hi guys,

I'm still working on this drop down list. I've got the actual drop down list to wor

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

How could I combine these arrays??
Hello.. I'm trying to figure out a way to combine these first two arrays to get the last array..

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

Problems with array
This code is the last lines in an upload script that uploads 4 images at the same time and writes th

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

RadioButtonList item spacing
I have a RadioButtonList and I can't put any spacing between the items. They are arranged verticall

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