Skip to main content

ord - online function

ord ( string $string ) : int

ord function interprets the binary value of the first byte of string as an unsigned integer. This tool works like mb_ord so value can be higher than 255 on regular ord function.

chr is inversed ord function, so:

ord(chr(200)) == 200 // true

You may also be interested in:

We use cookies on our website to enhance your user experience. We also use Google analytics and ads.

Click here to read more I've read it