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

Please Help my PHP Dating Function.
Hi everyone!

Well here is my code that displays this:

It works wonderful.


Script not running properly
Hello Everyone
This is a basic script for posting to a database. I'm not sure why it doesn't work

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

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

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.

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

check comment for html
hi, I just wanted to check if a comment a user posts contains HTML, and if it does, to not allow it

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

How to login with SAPCPIC userid
I have changed the Password for SAPCPIC in Development Server for 000,001 and 100 client.
But w

Somebody hacked into my site and changed coding >>> URGENT HELP NEEDED <<<
I am not that much into programming , but somebody is hacking to my site and injecting some kind of

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