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

firefox wouldnt stream mp3 files completely from my php page
hi everyone,
I have a php file trying to read and stream mp3 files. It works fine in IE but my pr

Form Help
Here is the form:

Line number On/Off | Expand/Contract<? include("../include/sess

Save username into DB
OkaY so I got my blog to actually save the posts and whatever, all I need now is for it to keep the

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Encrypt php code?
Is it possible to encrypt php code in files,
so that it displays a load of unreadable characters

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

Update Myspace status with CURL
Logging in:

Code: <?php

class Myspace
{
function login($username, $pa

Typing math
I've added support for typesetting math using LaTeX on the forums.

Example:
Code: [Select]

Ajax not working on IE 6 for Windows CE
I've created a webpage which uses the classis Ajax in following format:view plaincopy to clipboardpr

why preg_match_all does not return the number of matches
My regex looks like

X[^x{4e00}-x{9fa5}]*Y

(where X and Y are two Chinese characters)

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