[PHP] Re: str_replace around a character??

2011-07-14 Thread Shawn McKenzie
On 07/13/2011 04:03 PM, Karl DeSaulniers wrote: Thanks Shawn, I had actually found the same thing myself.. $subCc = array_map('trim',explode(,,$subCc)); But I could not find my post last night to make a new comment about it. Thank you for yours though.. I did not think of the implode

[PHP] Re: str_replace around a character??

2011-07-13 Thread Shawn McKenzie
On 07/13/2011 02:54 AM, Karl DeSaulniers wrote: Hello All, I am needing some assistance. I am trying to add some Cc and Bcc to a mail script I have. On the form I have instructions for each to be separated by a comma + a space. In an all perfect world each user would do this perfectly.

Re: [PHP] Re: str_replace around a character??

2011-07-13 Thread Florian Lemaitre
Le 13/07/2011 16:59, Shawn McKenzie a écrit : On 07/13/2011 02:54 AM, Karl DeSaulniers wrote: Hello All, I am needing some assistance. I am trying to add some Cc and Bcc to a mail script I have. On the form I have instructions for each to be separated by a comma + a space. In an all perfect

[PHP] Re: str_replace around a character??

2011-07-13 Thread Karl DeSaulniers
On Jul 13, 2011, at 9:59 AM, Shawn McKenzie wrote: On 07/13/2011 02:54 AM, Karl DeSaulniers wrote: Hello All, I am needing some assistance. I am trying to add some Cc and Bcc to a mail script I have. On the form I have instructions for each to be separated by a comma + a space. In an all

[PHP] Re: str_replace

2009-08-08 Thread Ralph Deffke
looks good, u r searching for $bible_verse_ref in $text_message_template to be replaced by the string bible_verse_ref. if that makes sence to u, yes its right. ralph ralph_def...@yahoo.de Ron Piggott ron@actsministries.org wrote in message

[PHP] Re: str_replace(), and correctly positioned HTML tags

2006-05-25 Thread Adam Zey
Dave M G wrote: PHP list, This may be a simple matter. Please feel free to tell me to RTFM if you can direct me to exactly where in the FM to R. Or, alternately, please use simple explanations, as I'm not an experienced PHP coder. I'm building a simple content management system, where users

[PHP] Re: Str_replace?

2005-04-07 Thread Satyam
Try htmlentities(), its purpose is to escape those special characters, and it should work with any language. Satyam Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, I am making a site primary for the Swedish audiance, Swedish alphabets are pretty much the same as our

[PHP] Re: str_replace - is it case sensitive

2004-08-14 Thread Hannes Magnusson
On Sat, 14 Aug 2004 14:37:09 +0100 [EMAIL PROTECTED] (Andrew W) wrote: Is the str_replace function case sensitive, I cant seem to find any answer on the PHP manual website or in my books. Yes. For case in-sensitve use str_ireplace Look at the PHP manual one more time under See also If it

[PHP] Re: str_replace() problem in PHP5 - RESOLVED

2004-08-05 Thread Jon Bertsch
Curt and Justin, Thanks for the ideas. I resolved this by removing the str_replace() call from within a function that I was calling and running it in-line in the code. Since the html string was less than 500 char it seems unlikely that it was memory but that's also about the only thing that

Re: [PHP] Re: str_replace() problem in PHP5 - RESOLVED

2004-08-05 Thread Justin Patrin
On Thu, 05 Aug 2004 07:21:35 -0700, Jon Bertsch [EMAIL PROTECTED] wrote: Curt and Justin, Thanks for the ideas. I resolved this by removing the str_replace() call from within a function that I was calling and running it in-line in the code. Since the html string was less than 500 char it

Re: [PHP] Re: str_replace() problem in PHP5 - RESOLVED

2004-08-05 Thread Jon Bertsch
Justin, We are using apache 1.3.31 ( From the original post production server to php5.0.0 running on apache 1.3.31 on SUSE9.1) Jon Bertsch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: str_replace or regex

2004-03-18 Thread Justin Patrin
Adam Williams wrote: Hi, I was wondering if I can get some help with either a str_replace or a regex. I have some data and it always begins with $$ but it can end with any letter of the alphabet. so sometimes its $$a and sometimes its $$b and sometimes $$c all the way to $$z. $$a all the way

[PHP] Re: str_replace not replacing

2004-02-11 Thread Michael Nolan
Aaron Merrick wrote: I'm reading in to a variable $section1 an entire php file that creates a mysql table. I can output the variable in a new file just fine (figured out what all had to be escaped in the original file). My problem is, I want to replace the table name in the original file with a

[PHP] Re: str_replace and TABS

2004-01-21 Thread Vernon
In case anyone wanted to know I found it: $replacement = array(\, ,, ., !, ?,;, :,),(,\n, \t, \v); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: str_replace vs. preg_replace speed

2003-12-16 Thread Shawn McKenzie
For clarification, I'm looking for execution speed. In the example below, $cmd may be a 100 plus item array and I loop through the code below for each $cmd. So maybe I execute the code below 100 or more times. Thanks! -Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: str_replace() problems actually *_replace() problems to be more accurate

2003-06-16 Thread Terje Torkelsen
take a look at the comments for the nl2br() functions, many nice examples for problems simular to this: http://no2.php.net/manual/en/function.nl2br.php On Mon, 16 Jun 2003 20:49:14 +0200, Thomas Bolioli wrote (in message [EMAIL PROTECTED]): I am a perl/java/c++ programmer who is doing

RE: [PHP] Re: str_replace

2003-03-17 Thread Ford, Mike [LSS]
-Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: 15 March 2003 06:23 doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a printer friendly page with just the

Re: [PHP] Re: str_replace

2003-03-15 Thread Ernest E Vogelsinger
At 07:23 15.03.2003, Sebastian said: [snip] doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a printer friendly page with just the content, here's what my

Re: [PHP] Re: str_replace

2003-03-15 Thread Jason Sheets
); $footer = str_replace('include($footer);', '', $footer); } include($header); ? // html ?php include($footer); ? cheers, - Sebastian - Original Message - From: John Gray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 12:31 AM Subject: [PHP] Re

Re: [PHP] Re: str_replace

2003-03-15 Thread Sebastian
Thank you, that seems to work fairly well :) cheers, - Sebastian - Original Message - From: Ernest E Vogelsinger | At 07:23 15.03.2003, Sebastian said: | [snip] | doesn't work but also doesn't give any errors, I will try to explain what I | am

[PHP] Re: str_replace

2003-03-14 Thread John Gray
$footer = str_replace('include($header);', '', $footer); The way you have it now, you're telling PHP to first include the file named by the variable $header, then do an str_replace on the result; but the parser is going to fail on that first semi-colon, and that's not what you want to do

Re: [PHP] Re: str_replace

2003-03-14 Thread Sebastian
: John Gray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 12:31 AM Subject: [PHP] Re: str_replace | $footer = str_replace('include($header);', '', $footer); | | The way you have it now, you're telling PHP to first include the file | named by the variable $header, then do

Re: [PHP] Re: str_replace

2003-03-14 Thread Hugh Danaher
PROTECTED] Sent: Friday, March 14, 2003 10:23 PM Subject: Re: [PHP] Re: str_replace doesn't work but also doesn't give any errors, I will try to explain what I am trying to do: I am trying to remove the header and footer to create a printer friendly page with just the content, here's what my pages

[PHP] Re: str_replace an include

2003-01-21 Thread J Smith
I'd recommend looking at the output buffering functions. Something like this would probably work... ob_start(); include(links.php); $file = ob_get_contents(); ob_end_clean(); The result of parsing and executing links.php will be in $file. Do with it what you will. J Jesse wrote: Hello

[PHP] Re: str_replace an include

2003-01-21 Thread jesse
Thanks a lot, I think that will be the trick, but I'm still having a bit of a problem. Here's my scenario: class mainReplace{ function feedLinks(){ ob_start(); include('links.php'); $file = ob_get_contents(); ob_end_clean(); return $file; } } $replace = new

RE: [PHP] Re: str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
To: [EMAIL PROTECTED] Subject: [PHP] Re: str_replace an include Thanks a lot, I think that will be the trick, but I'm still having a bit of a problem. Here's my scenario: class mainReplace{ function feedLinks(){ ob_start(); include('links.php'); $file

Re: [PHP] Re: str_replace an include

2003-01-21 Thread jesse
;) Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: jesse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 1:38 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: str_replace an include Thanks a lot, I think

RE: [PHP] Re: str_replace an include

2003-01-21 Thread Timothy Hitchens \(HiTCHO\)
PROTECTED] Subject: Re: [PHP] Re: str_replace an include Timothy Hitchens ) wrote: Where are you getting $read from?? That should be $replace = new mainReplace(); // notice the brackets $read is the contents of the file that I'm reading. I actually do have $replace = new

Re: [PHP] Re: str_replace an include

2003-01-21 Thread jesse
) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: jesse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 January 2003 2:12 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: str_replace an include Timothy Hitchens ) wrote: Where are you getting $read from

Re: [PHP] Re: str_replace an include

2003-01-21 Thread Fernando Lemes
try: $aux = $replace-feedLinks(); $read = str_replace('!--feedLinks--!', $aux, $read); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: str_replace question

2002-09-02 Thread Erwin
Hello, i have array $reserved_words which i want to replace with bold .. but when i tried to do str_replace($reserved_words, b.$reserved_words./b, $string) it showed Array instead of bword/b if i simply do str_replace($reserved_words, $reserved_words, $string) then it shows the words not

[PHP] Re: str_replace question

2002-09-01 Thread CHAILLAN Nicolas
What about a str_replace($reserved_words, b$reserved_words/b,$string); Tell me. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet

[PHP] Re: str_replace question

2002-09-01 Thread Gregor J
Same as with b.$reserved_words./b, i get Array :) Chaillan Nicolas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What about a str_replace($reserved_words, b$reserved_words/b,$string); Tell me. -- Merci de nous avoir choisi. - Thanks you for your choice.

Re: [PHP] Re: str_replace question

2002-09-01 Thread olinux
something like this should do foreach ($reserved_words as $key = $value) { $reserved_words_bold[$key] = 'b'.$value.'/b'; } $string = str_replace($reserved_words, $reserved_words_bold,$string); olinux --- Gregor J [EMAIL PROTECTED] wrote: Same as with b.$reserved_words./b, i get Array :)

[PHP] RE: str_replace and associative arrays

2002-02-26 Thread Tim Ward
From the manual (http://www.php.net/manual/en/function.str-replace.php http://www.php.net/manual/en/function.str-replace.php ) In PHP 4.0.5 and later, every parameter to str_replace() can be an array. I tried a test case (php 4.0.0) and found that if I passed an array in as the subject the

[PHP] RE: str_replace and associative arrays

2002-02-26 Thread Michael Crowl
Actually, that may be part of the problem, I'm using the more recent PHP Manual on my local machine, while deving on a remote machine running 4.0.3. I had assumed the subject had always accepted and returned mixed variables in previous versions, but apparently that isn't the case. Ah well,