Olav Mørkrid schreef:
how do i test if a property of a stdclass object is set, even if its
value is null, similar to how array_key_exists() works for arrays.
the following method fails:
$a-b = null;
if(isset($a-b))
echo yes;
and property_exists() seems only to work for defined
On 8/17/07, Olav Mørkrid [EMAIL PROTECTED] wrote:
how do i test if a property of a stdclass object is set, even if its
value is null, similar to how array_key_exists() works for arrays.
the following method fails:
$a-b = null;
if(isset($a-b))
echo yes;
and property_exists() seems
ÄãºÃ!
Unknown command - ÄúÃ!. Try HELP.
ÎÒ¹«Ë¾ÌṩCDMAÎÞÏß¹«»°²úÆ·,²úÆ·°üÀ¨CDMAת½ÓºÐ/CDMAÉÌÎñµç»°,ÓÐÒÔÏÂ4ÖÖ·þÎñ
Unknown command - ÎÒ¹«Ë¾ÌÁ¹©CDMAÎÞÏß¹«»°²ÚÆ·,²ÚÆ·°ÜÀ¨CDMAת½ÓºÐ. Try HELP.
·½Ê½:
Unknown command - ·½Ê½:. Try HELP.
(1)Ö±½ÓÏúÊÛÎÒ¹«Ë¾Æ·ÅƵÄCDMAÎÞÏß¹«»°²úÆ·.
Unknown command -
At 02:36 30.01.2003, Webapprentice said:
[snip]
Hi,
I have a conditional:
if (a == b)
a is the number 0, but b is a string Friday August 22.
The condition is evaluating as true, which is not what I want.
What am I misunderstanding?
I have a conditional:
if (a == b)
a is the number 0, but b is a string Friday August 22.
The condition is evaluating as true, which is not what I want.
What am I misunderstanding?
You're comparing a string to a number perhaps?
I tried this:
-8-
$a = 0;
$b = Friday August
On Thursday 30 January 2003 02:39, David Freeman wrote:
-8-
$a = 0;
$b = Friday August 22;
-8-
and resulted in 'no match'.
Or try
$a = 0;
$c = (string) $a; // Now $c == 0
or
if (( (string) $a == (string) $b)) {
...
The manual could be your friend, too:
Stephen,
Friday August 22 evaluates to the number 0. (check the docs for intval())
Therefore the condition would be true.
I stated in an earlier thread this week. It is bad for to allow PHP todo
your conversions for you. At the least it's lazy, at the most it will cause
unpredictable results.
Cal,
Thanks for the suggestion. I looked up equality on www.php.net, and
there are many comments about how == works.
I also found out === works too, or is that still lazy?
Thanks,
Stephen
Cal Evans wrote:
Stephen,
Friday August 22 evaluates to the number 0. (check the docs for intval())
$a === $b
TRUE if $a is equal to $b, and they are of the same type. (PHP 4 only)
-Original Message-
From: David Freeman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 7:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] if (a == b) ...
I have a conditional
Hi BAROILLER Pierre-Emmanuel,
On Sat, 9 Nov 2002 15:34:56 +0100, you wrote about [PHP] Re:
http$B$G%;%C%7%g%s$r3+;O$7$?l9g!(Bhttps$B$X9T$C$F$b7QB3$5$l$k$N$G$7$g$$+!)(B
something that looked like this:
Hi !
Could you write it in english please ?
Yeah ... not alot of people here can read
so now it's shifted from his attitude to your seeming
inability to cope with words related to sexual intercourse?
we all need to calm down and relax.
-Original Message-
From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] Attitude of B van Ouwerkerk
B. van
scott [gts] wrote:
so now it's shifted from his attitude to your seeming
inability to cope with words related to sexual intercourse?
we all need to calm down and relax.
Hey, all I said was that he did not RTFM, but RTM, the version without
fucking.
regards
Wagner
--
Madness takes its
What!!? I always thought it was the fine manual. Gosh, I'm so naive.
Blushing in Nova Scotia - Miles
At 04:39 PM 8/1/01 +0200, Alexander Wagner wrote:
scott [gts] wrote:
so now it's shifted from his attitude to your seeming
inability to cope with words related to sexual intercourse?
we
It's not the first time and I've mentioned it before. I in fact just
emailed all those off list from that thread.
One reason why PHP has lured many in is it's ease of use and it's FRIENDLY
user community.
Sure some people come on here and ask simple questions, maybe ones that
can be found in
: legokiller666
- Original Message -
From: Jeff Lewis [EMAIL PROTECTED]
To: Steve Wright [EMAIL PROTECTED]; PHP List
[EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 11:23 AM
Subject: RE: [PHP] Attitude of B van Ouwerkerk
It's not the first time and I've mentioned it before. I in fact just
This is not to condone discourtesy, but the key to this complaint
is being on the list for a while.
In the everyday friction of life, terse emails are easily
misinterpreted. I happen to feel that van Ouwerkerk's reponse
is not disgraceful, and attributing it to his attitude is
a leap of the
PhP'ers
I would suggest that people not think too hard about this and continue
programming.
Thats right get back to work...:)
Have Fun!
--ccma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
there's a fine line between being terse and being nasty.
please don't misinterpret this, but i think that we
could all benefit from being less sensitive of the
style each of us express ourselves in...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I've just looked at his emails for the last week, and he is a helpful guy!
Not only is he helpful, I'll wager he's being helpful in a language that's
not his native tongue, so it's utterly unreasonable to expect the subtle
'gentle' idioms that you might get from a native speaker who had plenty
on 7/31/01 12:37 PM, scott [gts] at [EMAIL PROTECTED] wrote:
there's a fine line between being terse and being nasty.
please don't misinterpret this, but i think that we
could all benefit from being less sensitive of the
style each of us express ourselves in...
once again, scott, you seem
Not for this list specifically, and not as well used as it might be ;)
http://www.php.net/manual/en/faq.php
Kirk
what is up with a faq for this list? is there one?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
PROTECTED]
Sent: Tuesday, July 31, 2001 12:17 PM
Subject: RE: [PHP] Attitude of B van Ouwerkerk
Not for this list specifically, and not as well used as it might be ;)
http://www.php.net/manual/en/faq.php
Kirk
what is up with a faq for this list? is there one?
--
PHP General Mailing List
, helping
people!!!
-lk6-
http://www.StupeedStudios.f2s.com
New address new site
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
- Original Message -
From: Johnson, Kirk [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 12:17 PM
Subject: RE: [PHP
Let me give just one reply.. I did read them all..
I don't hate Kyle Smith /me rather uses the energy needed to hate in a
positive way.. Like to write docs for an opensource project. Did a rewrite
once..
Phil Driscoll.. you win. I'm Dutch. No I don't have time to go a few times
over my mail
man!
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666
- Original Message -
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 2:11 PM
Subject: Re: [PHP] Attitude of B van Ouwerkerk
Let me give just one reply.. I did read them all..
I
B. van Ouwerkerk wrote:
Ask yourself.. who has an attitude problem here.. Someone who didn't
read the manual.. or someone (/me) who wrote to RTFM.
You didn't even RTFM him. I found it to be more like RTM, the more
gentle version (the one without words connected to sexual intercourse).
Your
... The annotations in the PHP manual can be incredibly helpful
on occasion.
--Matt
-Original Message-
From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Attitude of B van Ouwerkerk
Let me give just one reply
Ok, I've been following this thread for the last few minutes ... and I have
to wonder what is this list for if not to ask questions, thereby
learning. Yes there's tons of different resources online, yup, that would
mean this is one too.
If you don't want to waste your time and read a
28 matches
Mail list logo