Skip to content

Commit b26b7cd

Browse files
committed
IHF: laravel_db_mysql_variable doc added.
1 parent b49553a commit b26b7cd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,14 @@ $now = laravel_db_mysql_now();
9292
9393
// 2016-06-23 15:23:16
9494
```
95+
96+
#### `laravel_db_mysql_variable`
97+
98+
Returns value of specified `mysql` variable:
99+
```php
100+
$hostname = (string) laravel_db_mysql_variable('hostname');
101+
102+
// localhost
103+
```
104+
105+
If variable doesn't exist, `false` would be returned.

0 commit comments

Comments
 (0)