for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class qrstr
* @author Tinymeng <[email protected]>
* @date: 2019/9/26 18:16
*/
namespace tinymeng\code\Gateways\qrcode;
class QRstr
{
public static function set(&$srctab, $x, $y, $repl, $replLen = false) {
$srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl));
}