Last active
January 22, 2016 22:26
-
-
Save mpenick/c9f794c3405946c081e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Cassandra; | |
| $fields = array('a' => Type::int(), 'b' => Type::text(), 'c' => Type::bigint()); | |
| $udt = new UserTypeValue($fields); | |
| $udt->set('a', 1); | |
| $udt->set('b', 'xyz'); | |
| $udt->set('c', new Bigint('123')); | |
| foreach ($udt as $key => $value) { | |
| print "$key: $value\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment