note 15234 added to class.variant

From: Date: Sun, 02 Sep 2001 17:37:04 +0000
Subject: note 15234 added to class.variant
Groups: php.notes 
Request: Send a blank email to php-notes+get-17537@lists.php.net to get a copy of this message
<?php # I think that we need some examples of this thing: # Lets define a real variant: $varREAL= new Variant("9.34 is a real number",VT_R8); print "Value:". $varREAL->value; # Will print 9.34 # Now an integer $varINT= new Variant("9.34 Printed as an integer",VT_INT); print "Value:". $varINT->value; # Will print 9 # Now a string $varSTR= new Variant("9.34 Printed as a string",VT_BSTR); print "Value:". $varSTR->value; # Will 9.34 Printed as a string ?> http://www.php.net/manual/en/class.variant.php

« previous php.notes (#17537) next »