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

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

how to populate a drop down box
Hi buddies!

PROCEDURE DOWNLOAD_REPORT_FORM (report_name varchar) is begin DOWNLO

SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built

$_FILES array
Ok,

I just started experimenting with PHP today. My goal right now is to have people be able

check_changed_data - I can't get data from the called method event
I use check_changed_data to trigger my event method.

The method delivers er_changed_data.

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

array help
Does anyone know how to require 10 text fields for individual grades and output class average? (10 p

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