Posted by Ron Barnett on 12/16/96 11:59
<affiliateian@gmail.com> wrote in message
news:1159378729.124628.218680@h48g2000cwc.googlegroups.com...
>
> 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
[Back to original message]
|