You usually don't want spaces either
foreach($_POST as $val)
{
if(strlen(trim($val)) < 1)
// do what you want
}
"Rick Emery" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> foreach($HTTP_POST_VARS as $val)
> if($val=="")
> {
> do something
> }
> - Original M
It appears that:
xml_set_character_data_handler($parser, 'handleData');
calls handleData() 3 times per element. Does anyone know the reason behind
this? Sounds like that could be very inefficient.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
"Leendert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It appears that:
>
> xml_set_character_data_handler($parser, 'handleData');
>
> calls handleData() 3 times per element. Does anyone know the rea
ages, but this
is what I can come up with from the top of my head. So, if you must depend
on replication, that's a good reason to choose BLOBs for storage. In any
other case I'd suggest you don't.
Regards,
Leendert Brouwer
Freelance consultancy
http://www.daholygoat.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Michael Lewis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I posted this on the PHP-DB list and then realized it was a more general
> question about PHP than DB so I am posting it here also hoping someone can
> help.
>
> I have a fairly common problem that I have not been able t
root node.
"Leendert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "Leendert" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > It appears that:
> >
> &
which is not the case). I know that
the docs say that you should cast it to a string when you want to do a
comparison, but apart from that just being an example, maybe my
suggestion is a more obvious one to notice?
regards,
Leendert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7 matches
Mail list logo