chr

  • We can find a character by it’s ASCII value in Ruby using the Integer#chr method.

    PHP

    $result = chr(116);
    var_export($result);
    // => 't'

    Ruby

    p 116.chr
    # => "t"

    see also

chown chunk_split

Looking for Rails or PHP web application development, integration, and training?

Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.