Generation

generate functionWed, 12 Apr 2023

cortar y pegar el valor de una celda en phpexcel

function cortarYpegarCelda($hojaOrigen, $hojaDestino, $filcelda, $colcelda, $rango) { $hojaOrigen->toArray($rango, null, true, true, true); $valorCelda = $hojaOrigen->getCell($filcelda, $colcelda)->getValue(); $hojaDestino->setCellValue($filcelda, $colcelda, $valorCelda); }

Want to kickstart your project?Use the new AI Studio to create your code