note 15234 deleted from class.variant by cmb
| From: | cmb@php.net | Date: | Fri, 18 Oct 2019 12:35:30 +0000 |
| Subject: | note 15234 deleted from class.variant by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212666@lists.php.net to get a copy of this message | ||
Note Submitter: alain at samoun dot com
----
<?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
?>