Help for this page

Select Code to Download


  1. or download this
        An alternative to using substr() as an lvalue is to
        specify the replacement string as the 4th argument.
        This allows you to replace parts of the EXPR and
        return what was there before in one operation,
        just as you can with splice().
    
  2. or download this
        while ($txt = substr($hex, 0, 32)) {
            substr($hex, 0, 32) = "";
            print "'$txt'\n";
        }