|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-14 12:04 UTC] stas@php.net
[2000-11-23 07:41 UTC] stas@php.net
[2000-12-12 05:56 UTC] stas@php.net
[2001-05-13 05:33 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
I have the following snippet of code $w = ip2long("192.168.2.35"); $x = $w & 0xffffff00; $y = $w & (0xffffff << 8); $z = ip2long("192.168.2.0"); printf ("w = %s<br>", dechex($w)); printf ("x = %s<br>", dechex($x)); printf ("y = %s<br>", dechex($y)); printf ("z = %s<br>", dechex($z)); which outputs this: w = c0a80223 x = 80000000 y = c0a80200 z = c0a80200 I can't come up with any reason why $x should be set as it is....