Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 6th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PHP substr() not working when 3rd parem is string like 0xe84?
  2. substr($file, $a[2], $a[1]); //not working...
  3.        
  4. substr($file, $a[2], 0xe84); //works fine - when entering the match directly as an integer
  5.        
  6. substr($file, $a[2], hexdec($a[1]));
  7.        
  8. substr($file, $a[2], intval($a[1],16));