You are here: Re: How to check for multiple @'s « PHP Programming Language « IT news, forums, messages
Re: How to check for multiple @'s

Posted by Ron Barnett on 09/29/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация