This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.1-fpm-alpine | |
### | |
# ----------------------------------------------------------- | |
# Configure system | |
# ----------------------------------------------------------- | |
### | |
# Update and install dependencies | |
RUN apk add --update --quiet --no-cache bash \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$variable = 23; | |
[$query, $params] = sql(fn() => <<<SQL | |
SELECT * FROM users WHERE id = ${yield $variable} OR id = ${yield 42} | |
SQL); | |
var_dump($query, $params); | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Example; | |
$a = 23; | |
\is_null($a); |
OlderNewer