Search Results

  1. ord (PHP 4, PHP 5, PHP 7, PHP 8) ord — Convert the first byte of a string to a value between 0 and 255

    • Sprintf

      Sprintf - PHP: ord - Manual

    • Printf

      Printf - PHP: ord - Manual

    • Fprintf

      Parameters ¶ stream A file system pointer resource that is...

    • Vsprintf

      Vsprintf - PHP: ord - Manual

    • Vfprintf

      Parameters ¶ stream format The format string is composed of...

    • Functions

      Functions Functions ¶ Table of Contents ¶ User-defined...

    • Trim

      trim (PHP 4, PHP 5, PHP 7, PHP 8) trim — Strip whitespace...

    • Htmlentities

      This function is identical to htmlspecialchars () in all...

  2. Definition and Usage The ord () function returns the ASCII value of the first character of a string.

  3. Jul 11, 2025 · The ord () function is a inbuilt function in PHP that returns the ASCII value of the first character of a string. This function takes a character string as a parameter and returns the ASCII value of the first character of this string.

  4. Discover how to use the PHP ord function to retrieve the ASCII value of a character. Explore syntax and examples.

  5. Unlock the full potential of PHP's ord () function with this comprehensive guide. Learn how to use it effectively in your projects with practical examples and tips.

  6. PHP ord () Function Topic: PHP String Reference Prev | Next Description The ord() function convert the first byte of a string to a value between 0 and 255 (i.e. ASCII value). The following table summarizes the technical details of this function.

  7. Aug 22, 2025 · The ord () function in PHP, while unassuming at first glance, is a powerful tool in a developer's arsenal. From basic character manipulation to complex algorithms in encryption and data processing, ord () plays a crucial role in PHP development.