Spec-Zone.ru › ColdFusion

asc

Determines the ASCII value of a character.

asc(string) → returns numeric

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: chr ascii

    Argument Reference

    string string
    Required

    Compatibility

    BoxLang:

    Version 1.0.0+ asc is transpiled to ascii in CFML files

    Examples
    Sample code invoking the asc function

    character and value of Korean currency symbol ( unicode number 8361 )

    x = chr( 8361 ); 
     writeoutput( 'character: #x#' ); 
     x = asc( x ); 
     writeoutput( '<br>Unicode value: #x#');

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

    Spec-Zone.ru

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