Re: unsigned chars
| From: | Alexey Zakhlestin | Date: | Mon, 05 Apr 2010 09:10:50 +0000 |
| Subject: | Re: unsigned chars | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47784@lists.php.net to get a copy of this message | ||
On 05.04.2010, at 13:01, donald sullivan wrote:
> is it possible to return unsigned chars from an extension?
> I have looked and cant find anything on it, or maybe i am looking for the wrong keywords.
Return to PHP-code?
No. PHP doesn't have explicitly signed or unsigned chars. PHP has "strings"
you can return:
1) string of chars
2) int (array of ints?)
Also, see http://docs.php.net/ord
ord() function converts first byte of byte-string to it's unsigned numeric representation