Hello,
Can anyone tell me how can replace prime symbol (') with quote symbol ("), using str_replace function or any other such function.
Thanks in advance.
Replace prime with quote [' to "]
Moderator: General Moderators
Re: Replace prime with quote [' to "]
You already know what function to use. How can you possibly not be able to figure it out for yourself?arjunetal wrote:Hello,
Can anyone tell me how can replace prime symbol (') with quote symbol ("), using str_replace function or any other such function.
Thanks in advance.
-
msurabbott
- Forum Commoner
- Posts: 33
- Joined: Thu Jan 01, 2009 10:18 pm
- Location: Chicago, IL, USA
Re: Replace prime with quote [' to "]
From php.net
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
$search => searching for what
$replace => replace with what
$subject => string to replace characters on.
You may want to do some research on best practices and php optimization though as I'm not sure str_replace is the fastest option for something of this sort.
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
$search => searching for what
$replace => replace with what
$subject => string to replace characters on.
You may want to do some research on best practices and php optimization though as I'm not sure str_replace is the fastest option for something of this sort.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Replace prime with quote [' to "]
I would say str_replace is the best option.