Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
Sent: Tuesday, May 17, 2011 8:51 PM > To: ad...@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 >>

RE: [PHP] Explode Question

2011-05-17 Thread admin
ts.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"; &g

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
iter can be an array in the Explode function. > > > > > > > Richard L. Buskirk > > -Original 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 Quest

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
iter can be an array in the Explode function. > > > > > > > Richard L. Buskirk > > -Original 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 Quest

RE: [PHP] Explode Question

2011-05-17 Thread admin
: 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&

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")

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]> wrot

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.xx

RE: [PHP] explode () question

2003-11-10 Thread Chris W. Parker
Malcolm 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.

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 t

Re: [PHP] explode question

2001-03-07 Thread Chris Lee
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. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Rol"" <[E

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