note 17661 rejected from language.types.type-juggling by zak
| From: | zak@php.net | Date: | Tue, 18 Dec 2001 19:42:26 +0000 |
| Subject: | note 17661 rejected from language.types.type-juggling by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23165@lists.php.net to get a copy of this message | ||
if I have the following C code
=================================
int num;
char str[10];
num = 256;
memcpy(str, &num, sizeof(int));
=================================
How do I emulate the effects of the previous code in PHP?