28, May 2012

problem with ereg_replace - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: problem with ereg_replace
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: problem with ereg_replace  (Read 945 times)
I wish I was an Oscar winner
**
Posts: 86
247 credits
Members referred : 0



« on: Aug 30, 2005, 03:27:43 pm »

I have this code which it was supposed to change the character \ to an emty string :

Code:
<?php
    ereg_replace
("\\"""$var);
?>


but it does not work. Is there any alternative to that?
« Last Edit: Aug 30, 2005, 03:30:05 pm by Wolfenstein »
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Aug 30, 2005, 03:30:25 pm »

Here is the answer :

Code:
<?php
    str_replace
("\\",""$var);
?>


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Novice Spammer
***
Posts: 100
103 credits
Members referred : 0



« Reply #2 on: Sep 01, 2005, 08:40:40 pm »

I used str_replace a while back to make a word sensor. Really usefull.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=52
Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: problem with ereg_replace
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 06:42:30 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.