src/qrspec.php
public static function set(&$frame, $x, $y, $repl, $replLen = false) {
            $frame[$y] = substr_replace($frame[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl));
        }
public static function set(&$frame, $x, $y, $repl, $replLen = false) {
            $frame[$y] = substr_replace($frame[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl));
        }
public static function set ( & $ frame , $ x , $ y , $ repl , $ replLen = false ) { $ frame [ $ y ] = substr_replace ( $ frame [ $ y ] , ( $ replLen !== false ) ? substr ( $ repl , 0 , $ replLen ) : $ repl , $ x , ( $ replLen !== false ) ? $ replLen : strlen ( $ repl ) ) ; }
Sets code frame with speciffied code.
@param Array $frame target frame (modified by reference)
@param Integer $x X-axis position of replacement
@param Integer $y Y-axis position of replacement
@param Byte $repl replacement string
@param Integer $replLen (optional) replacement string length, when __Integer__ > 1 subset of given $repl is used, when __false__ whole $repl is used
Sets code frame with speciffied code .