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

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

Help with PHP and checkboxes
I am posting this for a friend of mine, i wrote a small script for her to process her form data to a

LOOPing Problem
Hello All!

The following code loops through the data and displays the data accordingly. My p

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

Exporting new records
Trying to figure out the best way to set this up.

People register my site.

Their prof

Adding to an Int row in db
Hi, i have a database which houses all of the users of my site. One of the columns is for points whi

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

PHP Redirecting
Hello everyone. Is there a way to redirect people to pages within a statement in PHP? Since there is

how to hide input fields on selection screen using variant attribute
Hello all,

I want to know how to hide input fields on selection screen using variant attr

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