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

Auto install
Hi I have a directory lets say "apps" that I then have more folders ie "email",

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

Add User script "Could not execute query"
This should be an easy script but I can't get it to run. Can someone please help me?

<

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

Connect to database that isn't localhost
I am currently doing a small script for a company that doesn't have mySql support on there hosting.

upload control not working with update panel
Hi,

I am working with Asp.Net FileUpload control with ajax update panel,

if i use the

Using real time in php
I'm very average at PHP and im looking to introduce time to something on my site.
Its a sports si

path to include folder
Hi everyone,

When I'm testing locally, I have to add the name of the site folder as part of t

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

Mail from PHP form not always ending up in my inbox?
Hi guys,

I'm a real newbie to PHP and have managed to put together a simple mail form that se

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