At 12/14/2002 12:50 AM, John W. Holmes wrote:
> And here's a good example of why you should always test each solution
> and time it to see what's better. I was recommending a
> preg_replace_callback solution which I thought, as a lot of other people
> would also think, is a lot faster that your ow
Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: Steve Keller [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 5:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Odd St
> >Okay, so how do you know what to replace something like [author]
with?
> >What exactly are you doing again? I've forgotten the original
question.
> >:)
>
> Ok, got a sentence, like:
>
> a pile of [metal] 600 feet wide and 30 feet tall. On top of
it is
> a [monster].
>
> The items in
ime right now, though, to do
it.
---John Holmes...
- Original Message -
From: "Steve Keller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 5:09 PM
Subject: RE: [PHP] Odd Strpos Behavior
> At 12/11/2002 08:09 PM, you wrote:
>
> -Original Message-
> From: Steve Keller [mailto:[EMAIL PROTECTED]]
> Sent: 12 December 2002 22:09
>
> At 12/11/2002 08:09 PM, you wrote:
>
> >Okay, so how do you know what to replace something like
> [author] with?
> >What exactly are you doing again? I've forgotten the
> original que
At 12/11/2002 08:09 PM, you wrote:
Okay, so how do you know what to replace something like [author] with?
What exactly are you doing again? I've forgotten the original question.
:)
Ok, got a sentence, like:
a pile of [metal] 600 feet wide and 30 feet tall. On top of it is
a [monster].
> >It'd be easier to use a regular expression for something like this.
> >Something like this would work (from PHP Architect):
> >
> >$s = "I am going to be {a} years old on the {b}th of November, {c}.";
> >$a = array(
> >"a" => "one hundred",
> >"b" => "seventeen",
> >"c" => "two thousand two");
>
At 12/9/2002 07:20 PM, you wrote:
It'd be easier to use a regular expression for something like this.
Something like this would work (from PHP Architect):
$s = "I am going to be {a} years old on the {b}th of November, {c}.";
$a = array(
"a" => "one hundred",
"b" => "seventeen",
"c" => "two thous
At 12/10/2002 03:43 PM, you wrote:
John's suggestion of using '{', and '}' as the tag delimiters was to simplify
the regex. You can continue to use '[', and ']' as your delimiters, just
change the regex accordingly -- and don't forget that '[', and ']' needs to
be escaped.
Ah, all right. That w
On Tuesday 10 December 2002 09:45, Steve Keller wrote:
> At 12/9/2002 07:20 PM, John W. Holmes wrote:
> > It'd be easier to use a regular expression for something like this.
> > Something like this would work (from PHP Architect):
>
> I appreciate that, but considering I'm working from about 120
At 12/9/2002 07:20 PM, John W. Holmes wrote:
> It'd be easier to use a regular expression for something like this.
> Something like this would work (from PHP Architect):
I appreciate that, but considering I'm working from about 1200 files that
already exist and use [] to denote table names, I k
> I'm getting a really weird return from Strpos. What I'm doing is this,
and
> anyone familiar with any of the table-runner programs for RPG's will
know
> what I'm getting at here, I have a fields, like [adjective], [noun],
etc.,
> which I need to pull out and replace with values from included php
12 matches
Mail list logo