Skip to content

Commit 56709c6

Browse files
authored
Merge pull request #204 from akbarali1/patch-1
Update Statement.php
2 parents 0d91abe + f33b4ce commit 56709c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Statement.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,14 @@ public function rows()
534534
return $this->array_data;
535535
}
536536

537+
/**
538+
* @return false|string
539+
*/
540+
public function jsonRows()
541+
{
542+
return json_encode($this->rows(), JSON_PRETTY_PRINT);
543+
}
544+
537545
/**
538546
* @param array|string $arr
539547
* @param null|string|array $path

0 commit comments

Comments
 (0)