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

apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

switch not getting value
what am i doing wrong?
i want to populate the country list according to the category
i want to

a very simple php header question (sorry!)
Firstly...I do apologise if this annoys anyone....a header error

I'm do not know php &

Refining of search Criteria
Dear Friends

I need a help, I have a search page which of cars related, which has different s

Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.

SAP Business Suite
Hi all:

Within the SAP Business Suite solution I would like to ask you the main differenc

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

PHP Upload issue
Hi guys,

I have stumble across an interesting issue with my script and is doing my head in.

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

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