Re: [PHP] Explode Question

2011-05-17 Thread Marc Guay
$one = array(0 ='golf', 1 = 'field'); $two = array(0 = On the golf course or in the field of clover); $array_exp = explode($one, $two); What's the desired result? array('golf' = On the golf course or in the field of clover, 'field' = On the golf course or in the field of clover)); ? Marc

RE: [PHP] Explode Question

2011-05-17 Thread admin
: Tuesday, May 17, 2011 7:52 PM To: php-general@lists.php.net Subject: Re: [PHP] Explode Question $one = array(0 ='golf', 1 = 'field'); $two = array(0 = On the golf course or in the field of clover); $array_exp = explode($one, $two); What's the desired result? array('golf' = On the golf course

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Tuesday, May 17, 2011 7:52 PM To: php-general@lists.php.net Subject: Re: [PHP] Explode Question $one = array(0 ='golf', 1 = 'field'); $two = array(0 = On the golf course or in the field of clover); $array_exp = explode($one, $two

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Tuesday, May 17, 2011 7:52 PM To: php-general@lists.php.net Subject: Re: [PHP] Explode Question $one = array(0 ='golf', 1 = 'field'); $two = array(0 = On the golf course or in the field of clover); $array_exp = explode($one, $two

RE: [PHP] Explode Question

2011-05-17 Thread admin
Subject: Re: [PHP] Explode Question On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure the delimiter can be an array in the Explode function. Richard L

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
...@buskirkgraphics.com Cc: 'Marc Guay'; php-general@lists.php.net Subject: Re: [PHP] Explode Question On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure

Re: [PHP] explode () question

2003-11-10 Thread Chris Hayes
$rint1= rtrim($rintydata); echo $rint1; $rint2= explode(:, $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser Type: Opera/7.20 (Windows NT 5.1; U) [en] Referer: The problem is that when I do

RE: [PHP] explode () question

2003-11-10 Thread Chris W. Parker
Malcolm mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 9:13 AM said: I can't figure out how to do an ereg that will replace just the colon in Time nor can I find a way to make explode ignore it. This may even be a completely wrong approach, any help would be appreciated. What

RE: [PHP] explode () question

2003-11-10 Thread Wouter van Vliet
(after more and more discussion, this will be my first non-top post) $rint1= rtrim($rintydata); echo $rint1; $rint2= explode(:, $rint1); The data starts like this (from and email, there are many) ; Time: November 9th 2003, 10:37AM - PST IP Address: xx.xx.xxx.xxx Browser

Re: [PHP] explode () question

2003-11-10 Thread Malcolm
Thanks to everyone who replied. I have taken the short route and changed the source data. I should have thought of that first I suppose. Now I have a few existing records to edit but from now on I'll be automagic. On Mon, 10 Nov 2003 19:00:52 +0100, Wouter Van Vliet [EMAIL PROTECTED]

Re: [PHP] explode question

2001-03-07 Thread Jason Murray
Rol wrote: Hello all, I would like to check some names ( @ seperated strings) with this global $PHP_AUTH_USER I first do $arrLoginName = explode("@", $row-usr_loginName); How can I construct a loop which stops and returns true if a match is found? Any hints would be great.

Re: [PHP] explode question

2001-03-07 Thread Chris Lee
?php function check() { $arrLoginName = explode("@", $row-usr_loginName); foreach($arrLoginName as $pos = $val) if (match) return 1; return ; } ? is this what you mean? please post regarding. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph.