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

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

The IE or FF detector
Hello Friends,

Problem of today ( we seek for php help ) as following ,

we know all th

Why is my row count 0?
Here's the MySQL query i'm running. It basically pulls data from 2 tables based on some data passed.

A little help in c#
i am doing a simple paint program using c# i want to draw with the mouse so i wrote the code of the

storing video files into mysql in php
hi

i have my video files in my folder ,
i have to store the path of the videos into db an

I apologise! It's a newbie to PHP feedback form problem!
Hi,

I am a total newbie to PHP. I am also a unemployed and need to get a job. So after 100% r

help finding hacking loopholes
i was attacked by a redirect php injection

my pc is clean of viruses

so i figure that

CHMOD script
Hi,

I need a script to read all files in a folder and set to 777.

Can anyone help out

Significance of BPM
Hi Experts,
I am a novice in BPM , I just want to know how BPM as permenant department is

problem in program for counting no of chars using pointers
Hi all, I was trying to make a program which counts number of chars in a string using concpt of poin

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