Skip to content

Commit

Permalink
Merge pull request #204 from akbarali1/patch-1
Browse files Browse the repository at this point in the history
Update Statement.php
  • Loading branch information
isublimity authored Jan 16, 2024
2 parents 0d91abe + f33b4ce commit 56709c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,14 @@ public function rows()
return $this->array_data;
}

/**
* @return false|string
*/
public function jsonRows()
{
return json_encode($this->rows(), JSON_PRETTY_PRINT);
}

/**
* @param array|string $arr
* @param null|string|array $path
Expand Down

0 comments on commit 56709c6

Please sign in to comment.