Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
b9953f42
Commit
b9953f42
authored
Dec 09, 2014
by
Hannes Magnusson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write.php contains all examples for now
parent
4d591ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
find.php
examples/find.php
+0
-20
No files found.
examples/find.php
deleted
100644 → 0
View file @
4d591ed5
<?php
require
__DIR__
.
"/../src/MongoDB/QueryFlags.php"
;
require
__DIR__
.
"/../src/MongoDB/CursorType.php"
;
require
__DIR__
.
"/../src/MongoDB/Collection.php"
;
$manager
=
new
MongoDB\Manager
(
"mongodb://localhost:27017"
);
$collection
=
new
MongoDB\Collection
(
$manager
,
"crud.examples"
);
$result
=
$collection
->
find
(
array
(
"nick"
=>
"bjori"
),
array
(
"projection"
=>
array
(
"name"
=>
1
)));
foreach
(
$result
as
$document
)
{
var_dump
(
$document
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment