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

Ariba 9r - SAP MM Integration
Hi experts,

The standard Ariba adapter for 9r creates a relationship between Cost Centers

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

How to display objects in a row
I have 7 codes that i want to display in a row one next to another.
The first is {$ads->ad

How can use this array as a key?
Say I have this array for example:


print_r($array);

Prints:
Code: [Select]Array

isset undefined variable
Hi all,

Hope someone can point out the obvious. I've a log in script, if you dont enter a use

What exactly is net neatrality?
What exactly is it? I think it's anti-censorship and... stuff... but I don't really understand it

Displaying returned XML in another PHP page
I have an online payment form that will return XML given if a payment is successful or declines. I

Kill a process
I have a question - how can I kill a process from a command line or by using Oracle SQL Developer? I

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

Count
Getting the same count everytime

Code:
$visitquery = mysql_query("SELECT COUNT(*) FR

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