楽せず楽しむ

仕事、生活、生き方、考え方、広い意味での自立を目指して頑張ります。

PHP

新着順 人気順

error_log() をテキトーに使う

PHP

error_log(string $message, int $message_type = 0, string $destination = ?, string $extra_headers = ?) 結局 どうすれば使いやすいのか(覚えやすいのか)がわからないのでまとめてみる error_log('test'.PHP_EOL); とすると、phpの設定(php.ini)によ…

カレンダー用の配列を作成する

PHP

isset() empty() などにnullや空文字を与えた時の結果

PHP

存在チェック等、値と返り値が何年経っても覚えられないのでメモ書き null '' 0 1 -1 '0' '1' '[]' '[1]' if false false false true true false true false true isset false true true true true true true true true empty true true true false false tr…