FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » CTYPE
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: CTYPE [message #182667 is a reply to message #182666] Sun, 25 August 2013 19:05 Go to previous messageGo to previous message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma:
Member
On Sun, 25 Aug 2013 15:00:19 -0400, Twayne <nobody(at)spamcop(dot)net> wrote:

> On 2013-08-25 2:21 PM, Richard Yates wrote:
>> On Sun, 25 Aug 2013 13:51:14 -0400, Twayne <nobody(at)spamcop(dot)net> wrote:
>>
>>> if (ctype_alnum(str_split($zip,1)) { <---- Throws error [1]
>>
>> After a previous thread in which several people pointed out your
>> unbalanced parens, followed by suggestions about how you might
>> systematically discover such elementary errors, followed by
>> discussions about editors that could point these out and in which YOU
>> yourself recommended one that does this,
>>
>> how is it that you are still posting code like this?
>>
> OmiGod, I didn't see that and looked over & over & ...!

Try this:

<?php
function TwaynesParens($mycode) {
$leftparens=substr_count($mycode,'(');
$rightparens=substr_count($mycode, ')');
if($leftparens==$rightparens) {
echo '<br />Good for me! The problem is not unblanced
parens in my code (for once.)';
} else {
echo '<br />I did it again.<br />DO NOT POST THIS CODE
TO COMP.LANG.PHP!';
}
}
$mycode='(()()';
TwaynesParens($mycode);
?>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: korean character sets
Next Topic: Android app Developers requirements
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 07 00:11:27 GMT 2024

Total time taken to generate the page: 0.07334 seconds