Skip to content

Conversation

dv336699
Copy link

$result is an object, that throws an exception when you run the demo code.

$result is an object, that throws an exception when you run the demo
@@ -36,6 +36,7 @@ Example
$document = array('someKey' => 'someValue');
$result = r\table("tablePhpTest")->insert($document)
->run($conn);
$result = json_encode($result);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I think using print_r would be nicer here.

How about

echo "Insert: ";
print_r($result);
echo "\n";

@dv336699
Copy link
Author

dv336699 commented Dec 17, 2016

@danielmewes sorry for the delay, indeed.
that's fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants