Re: How to check for multiple @'s
- From: "Ron Barnett" <ron.REMOVE@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 20:18:16 +0100
<affiliateian@xxxxxxxxx> wrote in message
news:1159378729.124628.218680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ron Barnett wrote:
substr_count($CClist, '@')
will return the number of @ characters in $CClist
check out the PHP manual at PHP.net
THanks for the reply Ron.
Unfortunately, I am a newbie programmer and am having a tough time
making sense of the manual at PHP.net.
I can see hwo checking for the # of @'s will lead to a few statements
like if > 1 then blah. But am still lost as to actually coding this
into our current sciprt. Any more hints / tutorials / help for a newbie
in php?
all you need to do is check to see if there is more than your allowed number
of CCs in the list
I'm assuming you have the headers available in a string somewhere, if not
the task will be difficult to explain.
If you send me a mail with details of what you have and what you want to do
I'll have a look at it and try to get you on the right track.
Just remove the REMOVE bits from my email address.
There are a number of excellent PHP books in the market, I can recommend the
PHP developers cookbook published by SAMS (Angus Hughes / Andrei Zmievski)
although not a PHP primer it does give a good easy to follow set of code
examples.
Cheers
Ron
.
- References:
- How to check for multiple @'s
- From: affiliateian
- Re: How to check for multiple @'s
- From: Ron Barnett
- Re: How to check for multiple @'s
- From: affiliateian
- How to check for multiple @'s
- Prev by Date: Re: Is it worth it to return a resource by reference?
- Next by Date: Re: HTTP problem, wrong characters sent (HTTP pro's needed!)
- Previous by thread: Re: How to check for multiple @'s
- Next by thread: Re: How to check for multiple @'s
- Index(es):
Relevant Pages
|