|
Posted by Rik Wasmus on 09/14/07 13:13
On Fri, 14 Sep 2007 13:44:04 +0200, gosha bine <stereofrog@gmail.com> =
wrote:
> On 14.09.2007 13:10 Moham12345 wrote:
>> On 14 Sep, 12:03, Moham12345 <m_w_r...@hotmail.com> wrote:
>>> How can i detect if there is more then capital letter in a word?
>> sorry i think i did a typo just above... i was meant to say...
>> How can i detect more then one capital letter in a word?
>>
>
>
> many possibilities, for example
>
> preg_match_all('/[A-Z]/', $str, $m);
> $num_up =3D count($m[0]);
Let's summarize by $num_up =3D preg_match_all('/[A-Z]/', $str, $m);
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|