Skip to content

Commit f33b4ce

Browse files
authored
Update Statement.php
Add return rows json
1 parent cefff6a commit f33b4ce

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)