$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
: 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
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
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
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
...@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
$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
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
(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
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]
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.
?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.
12 matches
Mail list logo