preg_replace - understanding

This is a discussion on preg_replace - understanding within the PHP General forums, part of the PHP Programming Forums category; I'm trying to understand how the code works within the preg_replace function but the manual is just obscure as ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2003
Micah Montoy
 
Posts: n/a
Default preg_replace - understanding

I'm trying to understand how the code works within the preg_replace function
but the manual is just obscure as the examples are. Anyway, I am looking to
use it to replace "\\" in a string with "/" and I can not figure how how.
At first, I thought I could just do:

$filevalue = preg_replace("'\\', /", $filevalue);

but it doesn't do anything. If someone could relate what it is and what the
parts mean between the (), I would appreciate it.

thanks


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0