タグ

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

  • PHP: parse_url - 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

    oqzl
    oqzl 2021/11/18
    なにこれ? / “URL の各要素(コンポーネント) に含まれる制御文字 (ctype_cntrl() も参照下さい) は、 アンダースコア (_) に置き換えられる点に注意して下さい”
  • 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
    oqzl
    oqzl 2020/11/27
    めでたい
  • PHP: array_rand - 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

    oqzl
    oqzl 2018/09/25
    でもこれはMT系乱数
  • PHP: random_int - Manual

    指定された最小値と最大値の区間から、 等確率に選ばれるランダムな整数を生成します。 この関数が生成するランダムな値は、すべてのアプリケーションに対して適切です。 たとえば暗号化キーのような、長期間使うシークレットが挙げられます。 この関数が使う不規則性のソースは、優先度順に以下のとおりです: Linux: » getrandom(), /dev/urandom FreeBSD >= 12 (PHP >= 7.3): » getrandom(), /dev/urandom Windows (PHP >= 7.2): » CNG-API Windows: » CryptGenRandom macOS (PHP >= 8.2; >= 8.1.9; >= 8.0.22 CCRandomGenerateBytes がコンパイル時に利用可能な場合): CCRandomGenerateBytes() m

    PHP: random_int - Manual
    oqzl
    oqzl 2018/09/25
    この関数知らなかったw ずっとmt_rand() 使ってたww
  • 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

    oqzl
    oqzl 2018/09/23
    返り値の型宣言、PHP7以降。マニュアルの同じページ内で「返り値」「戻り値」が揺れているあたりが大変PHPらしい(褒めてない
  • 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 : 可変長引数リスト
    oqzl
    oqzl 2018/09/23
    引数の型宣言、PHP5以降。PHP7以降は例外を吐く
  • PHP: 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: PHP マニュアル - Manual
    oqzl
    oqzl 2018/09/23
    ちょっと久しぶりに熟読するw
  • PHP: connection_aborted - Manual

    A trick to detecting if a connection is closed without having to send data that will otherwise corrupt the stream of data (like a binary file) you can use a combination of chunking the data on HTTP/1.1 by sending a "0" ("zero") as a leading chunk size without anything else. *NOTE* it's important to note that it's not a good idea to check the stream more then once every few seconds. By doing this y

    oqzl
    oqzl 2013/02/21
    使うかも3
  • PHP: register_shutdown_function - 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

    oqzl
    oqzl 2013/02/21
    使うかも2
  • PHP: ignore_user_abort - 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

    oqzl
    oqzl 2013/02/21
    使うかも?
  • PHP: MongoCollection::save - Manual

    oqzl
    oqzl 2012/01/24
    やばい「例」の意味がわからん、誤植? → 第一引数への副作用の記述が漏れている。"_id"キーでMongoId Objectを追加するので注意
  • PHP: MongoCollection::createDBRef - Manual

    oqzl
    oqzl 2012/01/24
    MongoDBでJOIN的な事をするにはDB参照を使う、らしい → 遅い、らしい
  • PHP: SQL から Mongo への対応表 - Manual

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

    oqzl
    oqzl 2012/01/24
    これ覚えるの苦痛だな
  • PHP: debug_backtrace - 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

    oqzl
    oqzl 2011/08/31
    デバッグ時に有用
  • PHP: strspn - 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

    oqzl
    oqzl 2011/04/21
    こんな関数しらんかった
  • PHP: Sessions 実行時設定 - Manual

    INI_* モードの詳細および定義については どこで設定を行うのか を参照してください。 セッション管理システムは、php.iniファイルに記述可能な多くの設定オ プションをサポートします。以下に概要を示します。 session.save_handler string session.save_handler は、 セッションに関連するデータの保存および取得時に使用するハンドラを定義します。 デフォルトは、files です。各拡張モジュールで、 独自の save_handler を使用できることに注意しましょう。 インストール環境単位で登録されているハンドラを取得するには phpinfo() を使用します。 session_set_save_handler() も参照ください。 session.save_path string session.save_path は、保存ハンドラに渡される

    oqzl
    oqzl 2011/01/26
    session.gc_maxlifetime だけ変更して session.save_path を変え忘れるというミスを再び!!
  • PHP: memory_get_peak_usage - Manual

    memory_get_peak_usage() is used to retrieve the highest memory usage of PHP (or your running script) only. If you need the overall memory usage of the entire system, following function might be helpful. If retrieves the memory usage either in percent (without the percent sign) or in bytes by returning an array with free and overall memory of your system. Tested with Windows (7) and Linux (on an Ra

    oqzl
    oqzl 2011/01/20
    久々に使った関数
  • PHP: News Archive - 2010

    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

    oqzl
    oqzl 2010/12/11
    いままでありがとう!PHP5.2系終息のお知らせ
  • 1