Spec-Zone.ru › ColdFusion

mid

Extracts a substring from a string.

mid(String, start, count) → returns string

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: right left

    Argument Reference

    String string
    Required

    The string from which the substring will be extracted.

    start numeric
    Required

    The position of the first character to retrieve.

    count numeric
    Required

    The number of characters to retrieve.

    Examples
    Sample code invoking the mid function

    Extract month from date

    Grabs the month out of a raw date yyyymmdd value.

    mid("20001122", "5", "2")

    Expected Result: 11

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/mid

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API