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

php require help needed
Ok i tried to use the search funtion but the word require is everywhere.

i'm really new to cr

RSS poster script?
I have found a script that posts RSS's for me on a site that I'm building. However I would like to a

include function being weird?
I have a very simple system to grab an IP outputted by a PHP file.. (for a project I have) but it ou

displaying unknown amount of results
I am reading a directory and getting a list of folders in the directory, I want to display the folde

PRotect my POST DATA... FROM HTML ATTACKS
I need to like let's say

If a user submit's his Prayer and he put's <meta refresh stuf

Problem with HTML form
Hello,

I made a HTML form with some fields and check box.
Everything works fine except whe

Can I call a class inside a function?
I have a class written in another file that handles my image resizing.

Can I do this (php say

Cloud Computing?
Hello,

I was wondering if anyone could help explain this term to me. I'm starting to hear it

"SEO" URLs
Hey, I'm wondering how to go about creating and using these types of URLs. I'm presuming it's PHP th

Troubles with a spider class
I am building a spider that will crawl through random whitepages (eg. anywho.com, switchboard.com, w

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