@@ -42,7 +42,7 @@ $ TARANTOOL_BOX_PATH=/path/to/tarantool/bin/tarantool ./test-run.py
4242
4343## Installing from PEAR
4444
45- Tarantool-PHP Have it's own [ PEAR repository] ( https://tarantool.github.io/tarantool-php ) .
45+ Tarantool-PHP has its own [ PEAR repository] ( https://tarantool.github.io/tarantool-php ) .
4646You may install it from PEAR with just a few commands:
4747
4848```
@@ -78,7 +78,7 @@ Place it into project library path in your IDE.
7878
79791 . [ Predefined Constants] ( #predefined-constants )
80802 . [ Class Tarantool] ( #class-tarantool )
81- * [ Tarantool::_ construct ] ( #tarantool__construct )
81+ * [ Tarantool::__ construct ] ( #tarantool__construct )
82823 . [ Manipulation connection] ( #manipulation-connection )
8383 * [ Tarantool::connect] ( #tarantoolconnect )
8484 * [ Tarantool::disconnect] ( #tarantooldisconnect )
@@ -122,7 +122,7 @@ Tarantool {
122122 public Tarantool::authenticate(string $login [, string $password = NULL ] )
123123 public bool Tarantool::flushSchema ( void )
124124 public bool Tarantool::ping ( void )
125- public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int offset = 0 [, iterator = TARANTOOL_ITER_EQ ] ] ] ] ] )
125+ public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int $ offset = 0 [, $ iterator = TARANTOOL_ITER_EQ ] ] ] ] ] )
126126 public array Tarantool::insert(mixed $space, array $tuple)
127127 public array Tarantool::replace(mixed $space, array $tuple)
128128 public array Tarantool::call(string $procedure [, mixed args])
@@ -248,7 +248,7 @@ Throws `Exception` on error.
248248### Tarantool::select
249249
250250``` php
251- public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int offset = 0 [, iterator = TARANTOOL_ITER_EQ ] ] ] ] ] )
251+ public array Tarantool::select(mixed $space [, mixed $key = array() [, mixed $index = 0 [, int $limit = PHP_INT_MAX [, int $ offset = 0 [, $ iterator = TARANTOOL_ITER_EQ ] ] ] ] ] )
252252```
253253
254254_ ** Description** _ : Execute select query from Tarantool server.
@@ -274,18 +274,18 @@ request, or empty array, if nothing was found.
274274#### Example
275275
276276``` php
277- /* Select everything from space 'test' */
277+ // Select everything from space 'test'
278278$tnt->select("test");
279- /* Selects from space 'test' by PK with id == 1*/
279+ // Selects from space 'test' by PK with id == 1
280280$tnt->select("test", 1);
281- /* The same as previous */
281+ // The same as previous
282282$tnt->select("test", array(1));
283- /* Selects from space 'test' by secondary key from index 'isec' and == {1, 'hello'} */
283+ // Selects from space 'test' by secondary key from index 'isec' and == {1, 'hello'}
284284$tnt->select("test", array(1, "hello"), "isec");
285- /* Selects second hundred of rows from space test */
285+ // Selects second hundred of rows from space test
286286$tnt->select("test", null, null, 100, 100);
287- /* Selects second hundred of rows from space test in reverse equality order */
288- /* It meanse: select penultimate hundred */
287+ // Selects second hundred of rows from space test in reverse equality order
288+ // It meanse: select penultimate hundred
289289$tnt->select("test", null, null, 100, 100, TARANTOOL_ITER_REQ);
290290```
291291
@@ -312,12 +312,12 @@ _**Return Value**_
312312#### Example
313313
314314``` php
315- /* It'll be processed OK, since no tuples with PK == 1 are in space 'test' */
315+ // It'll be processed OK, since no tuples with PK == 1 are in space 'test'
316316$tnt->insert("test", array(1, 2, "smth"));
317- /* We've just inserted tuple with PK == 1, so it'll fail */
318- /* error will be ER_TUPLE_FOUND */
317+ // We've just inserted tuple with PK == 1, so it'll fail
318+ // error will be ER_TUPLE_FOUND
319319$tnt->insert("test", array(1, 3, "smth completely different"));
320- /* But it won't be a problem for replace */
320+ // But it won't be a problem for replace
321321$tnt->replace("test", array(1, 3, "smth completely different"));
322322```
323323
@@ -396,11 +396,11 @@ _**Return Value**_
396396#### Example
397397
398398``` php
399- /* Following code will delete all tuples from space `test` */
399+ // Following code will delete all tuples from space `test`
400400$tuples = $tnt->select("test");
401401foreach($tuples as $value) {
402- $tnt->delete("test", Array ($value[0]));
403- }
402+ $tnt->delete("test", array ($value[0]));
403+ }
404404```
405405
406406### Tarantool::update
0 commit comments