Skip to content

Instantly share code, notes, and snippets.

@mpenick
Last active January 22, 2016 22:26
Show Gist options
  • Select an option

  • Save mpenick/c9f794c3405946c081e9 to your computer and use it in GitHub Desktop.

Select an option

Save mpenick/c9f794c3405946c081e9 to your computer and use it in GitHub Desktop.
<?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