タグ

ブックマーク / www.php.net (16)

  • PHP: PHP 8.0.0 Release Announcement

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: PHP 8.0.0 Release Announcement
    k-holy
    k-holy 2020/11/27
    5.6から7.0は割と容易に移行できたけど、8.0は変わりすぎて今後の後方互換性が心配になるな…。手堅いコードが簡易に書けるようになるのは良いことなのだけど。
  • PHP: mysql_pconnect - Manual

    mysql_pconnect( string $server = ini_get("mysql.default_host"), string $username = ini_get("mysql.default_user"), string $password = ini_get("mysql.default_password"), int $client_flags = 0 ): resource MySQL サーバーとの持続的な接続を確立します。 mysql_pconnect()は、 mysql_connect()とよく似た動作をしますが、 2 つの大きな違いがあります。 1 番目の違いとして、この関数は接続時にまず 同じホスト、ユーザー名、パスワードを有する(持続的)リンクが すでにオープンされていないかどうかを調べます。 それがみつかった場合、新規の接続をオープンする代わりに その

    PHP: mysql_pconnect - Manual
    k-holy
    k-holy 2019/07/26
    mysql_pconnect()でもPHP5.3の頃からgone away発生してるのか。
  • PHP: 設定 - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: 設定 - Manual
  • PHP: array_column - Manual

    array_column() は、 配列 array の中から column_key で指定した単一のカラムの値を返します。 オプションで index_key も指定できます。 これを指定すると、 入力配列内のカラム index_key の値をキーとし、 カラム column_key を値とした配列が返されます。 パラメータ array 値を取り出したい多次元配列 (あるいはオブジェクトの配列)。 オブジェクトの配列を指定した場合は、public プロパティはそのまま取得できます。 protected や private なプロパティを取得したい場合は、そのクラスがマジックメソッド __get() および __isset() を実装している必要があります。 column_key 値を返したいカラム。 取得したいカラムの番号を整数値で指定することもできるし、 連想配列のキーやプロパティの名前

    PHP: array_column - Manual
    k-holy
    k-holy 2016/05/26
    PHP7以降はマジックメソッド実装オブジェクトの配列に対応してるのか
  • PHP: 下位互換性のない変更点 - Manual

    エラーや例外の取り扱いの変更 fatal error や recoverable fatal error の多くが、PHP 7 では例外に変換されるようになりました。 これらの例外は Error クラスを継承したもので、 このクラスは Throwable インターフェイスを実装しています。 この新しいインターフェイスを、すべての例外が実装しています。 エラーではなく例外がスローされるようになるということは、自作のエラーハンドラは呼び出されなくなるということです (Error 例外をキャッチしなかった場合は、fatal エラーが発生します)。 PHP 7 におけるエラーハンドリングの詳細な説明は PHP 7 のエラー を参照ください。 この移行ガイドでは、下位互換性のない変更点を列挙するだけにとどめます。 set_exception_handler() が常に Exception オブジェク

    PHP: 下位互換性のない変更点 - Manual
    k-holy
    k-holy 2015/10/13
    "変数やプロパティ、メソッドへの間接的なアクセスの扱いの変更" これちょっと怖いけど可変プロパティ名に波括弧付けていれば大丈夫かな
  • PHP: Gender - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: Gender - Manual
    k-holy
    k-holy 2014/08/28
    なんだこれ
  • PHP 5.4.28 Released

    We’re pleased to announce our first conference, PHP South Coast 2015! Taking place on the south coast of England in Summer 2015, where community members from around the world will come together to learn and share information about the latest trends and technologies in professional PHP development. Bulgaria Web Summit 2015 is an event about (almost) everything a modern web person should know: {Prog

    PHP 5.4.28 Released
    k-holy
    k-holy 2014/08/18
    さてさて…
  • PHP 5.4 beta2 released

    The PHP development team announces the immediate availability of PHP 8.1.30. This is a security release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.30 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog. The PHP team is pleased to announce the relea

    PHP 5.4 beta2 released
    k-holy
    k-holy 2013/10/25
    "it was periodically serving up userprefs.js with the wrong content length and then reverting back to the right size after a few minutes."
  • PHP: PDOStatement::execute - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: PDOStatement::execute - Manual
    k-holy
    k-holy 2013/08/27
    "実行される SQL 文の中のバインドパラメータと同数の要素からなる、 値の配列。すべての値は PDO::PARAM_STR として扱われます。"
  • PHP: imagecopymerge による半透明なすかしの作成 - Manual

    <?php // スタンプと、それをすかしとして適用する写真を読み込みます $im = imagecreatefromjpeg('photo.jpeg'); // まず、スタンプ画像を GD で作成します $stamp = imagecreatetruecolor(100, 70); imagefilledrectangle($stamp, 0, 0, 99, 69, 0x0000FF); imagefilledrectangle($stamp, 9, 9, 90, 60, 0xFFFFFF); imagestring($stamp, 5, 20, 20, 'libGD', 0x0000FF); imagestring($stamp, 3, 20, 40, '(c) 2007-9', 0x0000FF); // スタンプの余白を設定し、スタンプ画像の幅と高さを取得します $marge_ri

    k-holy
    k-holy 2012/05/02
    GDを使った半透明スタンプのサンプル
  • PHP: 例外 - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: 例外 - Manual
    k-holy
    k-holy 2012/04/02
    SPL Exception
  • PHP: スコープ定義演算子 (::) - Manual

    スコープ定義演算子 (::) スコープ定義演算子 (またの名を Paamayim Nekudotayim)、 平たく言うと「ダブルコロン」は、トークンのひとつです。 定数 static プロパティ、 クラスの static メソッド、 や親クラスのそれにアクセスできます。 さらに、static メソッドやプロパティは 遅延静的束縛 (Late Static Bindings) 経由でオーバーライドできます。 これらの要素をクラス定義の外から参照する際には、 クラスの名前を使用してください。 変数を用いてクラスを参照することも可能です。 変数の値に (self や parent、 static といった) キーワードを指定することはできません。 なぜダブルコロンに Paamayim Nekudotayim という名前をつけたのか、 ちょっと奇妙に感じられるかもしれません。 しかし、Zend

    PHP: スコープ定義演算子 (::) - Manual
    k-holy
    k-holy 2012/03/29
    Paamayim Nekudotayim, PAAMAYIM_NEKUDOTAYIM
  • PHP: 実行時設定 - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: 実行時設定 - Manual
    k-holy
    k-holy 2011/11/11
    緯度経度のデフォルト値はエルサレムだった
  • PHP: Manual Quick Reference

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: Manual Quick Reference
    k-holy
    k-holy 2008/04/24
  • PHP: Configure オプション - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: Configure オプション - Manual
  • PHP: php.ini ディレクティブ - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: php.ini ディレクティブ - Manual
    k-holy
    k-holy 2007/11/14
  • 1