On Thu, 20 Feb 2003, Derick Rethans wrote: > On Thu, 20 Feb 2003, Philip Olson wrote: > > > > </methodsynopsis> > > > <para> > > > Returns &true; if the <parameter>var</parameter> parameter is > > > - a <type>boolean</type>. > > > + a <type>bool</type>. > > > </para> > > > <para> > > > See also > > > > What's wrong with writing out boolean here? I'd prefer boolean > > over bool here. > > bool is the name of the type used throughout the manual, in protos etc. > And bool will make it link to the corresponding manual page.
It's written out (longhand) like "false is a boolean" throughout the manual except all protos are bool. It sounds nicer so let's fully write it out here, okay? ;) In the same light, 42 is an integer (integer in text, int in protos). Btw, <type>bool</type> wasn't creating a link but it does now. So, both bool and boolean create a link to language.types.boolean.{ext} Regards, Philip p.s. Out of boredom, here's a little test: <?php $i = array(42, '42', true, false); foreach ($i as $k => $var) { print "type: " . gettype($i[$k]) . " : value: : " . $var . "\n"; } var_dump($i); /* OUTPUT: 4.3.2-dev philip@rock:/var/www$ php bool.php type: integer : value: : 42 type: string : value: : 42 type: boolean : value: : 1 type: boolean : value: : array(4) { [0]=> int(42) [1]=> string(2) "42" [2]=> bool(true) [3]=> bool(false) } */ ?> Regards, Philip -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php