Skip to content

Instantly share code, notes, and snippets.

@PeterJCLaw
Created May 20, 2012 21:56
Show Gist options
  • Select an option

  • Save PeterJCLaw/2759684 to your computer and use it in GitHub Desktop.

Select an option

Save PeterJCLaw/2759684 to your computer and use it in GitHub Desktop.
PHP addition things.
<?php
$hex = 0x0;
$int = 2;
var_dump($hex); # int(0)
var_dump($int); # int(2)
var_dump($hex + $int); # int(2)
var_dump(0x0 + 2); # int(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment