Skip to main content
se eliminaron 18194 caracteres en el cuerpo
Origen Enlace
Agustin G.
  • 2.8k
  • 1
  • 17
  • 50

Agrego nuevamente las variables pero sin formatear, completas, para poder hacer pruebas

$usuarios

array(2) { [0]=> array(18) { ["id"]=> string(1) "1" [0]=> string(1) "1" ["nombre"]=> string(21) "Usuario Administrador" [1]=> string(21) "Usuario Administrador" ["usuario"]=> string(6) "admin1" [2]=> string(6) "admin1" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(8) "Especial" [4]=> string(8) "Especial" ["foto"]=> string(34) "vistas/img/usuarios/admin1/772.png" [5]=> string(34) "vistas/img/usuarios/admin1/772.png" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 09:16:39" [7]=> string(19) "2020-03-11 09:16:39" ["fecha"]=> string(19) "2020-03-11 09:16:39" [8]=> string(19) "2020-03-11 09:16:39" } [1]=> array(18) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["nombre"]=> string(12) "Oscar Guerra" [1]=> string(12) "Oscar Guerra" ["usuario"]=> string(4) "mani" [2]=> string(4) "mani" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(13) "Administrador" [4]=> string(13) "Administrador" ["foto"]=> string(32) "vistas/img/usuarios/mani/319.jpg" [5]=> string(32) "vistas/img/usuarios/mani/319.jpg" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 12:08:04" [7]=> string(19) "2020-03-11 12:08:04" ["fecha"]=> string(19) "2020-03-11 12:08:04" [8]=> string(19) "2020-03-11 12:08:04" } }

$ventas

array(18) { [0]=> array(20) { ["id"]=> string(1) "9" [0]=> string(1) "9" ["codigo"]=> string(5) "10001" [1]=> string(5) "10001" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" [4]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" ["servicios"]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(7) "10841.6" [6]=> string(7) "10841.6" ["precio_servicios"]=> string(3) "771" [7]=> string(3) "771" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:40:15" [9]=> string(19) "2020-01-01 16:40:15" } [1]=> array(20) { ["id"]=> string(2) "10" [0]=> string(2) "10" ["codigo"]=> string(5) "10002" [1]=> string(5) "10002" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" [4]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" ["servicios"]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "521" [7]=> string(3) "521" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:27" [9]=> string(19) "2020-03-01 17:08:27" } [2]=> array(20) { ["id"]=> string(2) "11" [0]=> string(2) "11" ["codigo"]=> string(5) "10003" [1]=> string(5) "10003" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" ["servicios"]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "644" [7]=> string(3) "644" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:22" [9]=> string(19) "2020-03-01 17:08:22" } [3]=> array(20) { ["id"]=> string(2) "12" [0]=> string(2) "12" ["codigo"]=> string(5) "10004" [1]=> string(5) "10004" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "850" [7]=> string(3) "850" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-27 00:00:00" [9]=> string(19) "2020-02-27 00:00:00" } [4]=> array(20) { ["id"]=> string(2) "13" [0]=> string(2) "13" ["codigo"]=> string(5) "10005" [1]=> string(5) "10005" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "299" [7]=> string(3) "299" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2019-12-27 11:46:36" [9]=> string(19) "2019-12-27 11:46:36" } [5]=> array(20) { ["id"]=> string(2) "14" [0]=> string(2) "14" ["codigo"]=> string(5) "10006" [1]=> string(5) "10006" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" [4]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" ["servicios"]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "549" [7]=> string(3) "549" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:32" [9]=> string(19) "2020-03-01 17:08:32" } [6]=> array(20) { ["id"]=> string(2) "15" [0]=> string(2) "15" ["codigo"]=> string(5) "10007" [1]=> string(5) "10007" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" ["servicios"]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(3) "250" [7]=> string(3) "250" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:50:46" [9]=> string(19) "2020-03-01 16:50:46" } [7]=> array(20) { ["id"]=> string(2) "16" [0]=> string(2) "16" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:51:01" [9]=> string(19) "2020-02-01 16:51:01" } [8]=> array(20) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:52:25" [9]=> string(19) "2020-03-01 16:52:25" } [9]=> array(20) { ["id"]=> string(2) "18" [0]=> string(2) "18" ["codigo"]=> string(5) "10009" [1]=> string(5) "10009" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:53:12" [9]=> string(19) "2020-02-01 16:53:12" } [10]=> array(20) { ["id"]=> string(2) "19" [0]=> string(2) "19" ["codigo"]=> string(5) "10010" [1]=> string(5) "10010" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" [5]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "600" [7]=> string(3) "600" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:42" [9]=> string(19) "2020-01-01 16:53:42" } [11]=> array(20) { ["id"]=> string(2) "20" [0]=> string(2) "20" ["codigo"]=> string(5) "10011" [1]=> string(5) "10011" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" [4]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(6) "205.87" [6]=> string(6) "205.87" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:54" [9]=> string(19) "2020-01-01 16:53:54" } [12]=> array(20) { ["id"]=> string(2) "21" [0]=> string(2) "21" ["codigo"]=> string(5) "10012" [1]=> string(5) "10012" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" [4]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" ["servicios"]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(7) "45415.2" [6]=> string(7) "45415.2" ["precio_servicios"]=> string(5) "13323" [7]=> string(5) "13323" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 12:40:17" [9]=> string(19) "2020-03-02 12:40:17" } [13]=> array(20) { ["id"]=> string(2) "22" [0]=> string(2) "22" ["codigo"]=> string(5) "10013" [1]=> string(5) "10013" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:34:05" [9]=> string(19) "2020-03-02 20:34:05" } [14]=> array(20) { ["id"]=> string(2) "23" [0]=> string(2) "23" ["codigo"]=> string(5) "10014" [1]=> string(5) "10014" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:36:04" [9]=> string(19) "2020-03-02 20:36:04" } [15]=> array(20) { ["id"]=> string(2) "24" [0]=> string(2) "24" ["codigo"]=> string(5) "10015" [1]=> string(5) "10015" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" [4]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(5) "209.1" [6]=> string(5) "209.1" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:42:40" [9]=> string(19) "2020-03-09 12:42:40" } [16]=> array(20) { ["id"]=> string(2) "25" [0]=> string(2) "25" ["codigo"]=> string(5) "10016" [1]=> string(5) "10016" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" [5]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "546" [7]=> string(3) "546" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:44:45" [9]=> string(19) "2020-03-09 12:44:45" } [17]=> array(20) { ["id"]=> string(2) "26" [0]=> string(2) "26" ["codigo"]=> string(5) "10017" [1]=> string(5) "10017" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" [4]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" ["servicios"]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(5) "418.2" [6]=> string(5) "418.2" ["precio_servicios"]=> string(3) "444" [7]=> string(3) "444" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-11 12:08:26" [9]=> string(19) "2020-03-11 12:08:26" } }

Agrego nuevamente las variables pero sin formatear, completas, para poder hacer pruebas

$usuarios

array(2) { [0]=> array(18) { ["id"]=> string(1) "1" [0]=> string(1) "1" ["nombre"]=> string(21) "Usuario Administrador" [1]=> string(21) "Usuario Administrador" ["usuario"]=> string(6) "admin1" [2]=> string(6) "admin1" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(8) "Especial" [4]=> string(8) "Especial" ["foto"]=> string(34) "vistas/img/usuarios/admin1/772.png" [5]=> string(34) "vistas/img/usuarios/admin1/772.png" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 09:16:39" [7]=> string(19) "2020-03-11 09:16:39" ["fecha"]=> string(19) "2020-03-11 09:16:39" [8]=> string(19) "2020-03-11 09:16:39" } [1]=> array(18) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["nombre"]=> string(12) "Oscar Guerra" [1]=> string(12) "Oscar Guerra" ["usuario"]=> string(4) "mani" [2]=> string(4) "mani" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(13) "Administrador" [4]=> string(13) "Administrador" ["foto"]=> string(32) "vistas/img/usuarios/mani/319.jpg" [5]=> string(32) "vistas/img/usuarios/mani/319.jpg" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 12:08:04" [7]=> string(19) "2020-03-11 12:08:04" ["fecha"]=> string(19) "2020-03-11 12:08:04" [8]=> string(19) "2020-03-11 12:08:04" } }

$ventas

array(18) { [0]=> array(20) { ["id"]=> string(1) "9" [0]=> string(1) "9" ["codigo"]=> string(5) "10001" [1]=> string(5) "10001" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" [4]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" ["servicios"]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(7) "10841.6" [6]=> string(7) "10841.6" ["precio_servicios"]=> string(3) "771" [7]=> string(3) "771" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:40:15" [9]=> string(19) "2020-01-01 16:40:15" } [1]=> array(20) { ["id"]=> string(2) "10" [0]=> string(2) "10" ["codigo"]=> string(5) "10002" [1]=> string(5) "10002" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" [4]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" ["servicios"]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "521" [7]=> string(3) "521" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:27" [9]=> string(19) "2020-03-01 17:08:27" } [2]=> array(20) { ["id"]=> string(2) "11" [0]=> string(2) "11" ["codigo"]=> string(5) "10003" [1]=> string(5) "10003" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" ["servicios"]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "644" [7]=> string(3) "644" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:22" [9]=> string(19) "2020-03-01 17:08:22" } [3]=> array(20) { ["id"]=> string(2) "12" [0]=> string(2) "12" ["codigo"]=> string(5) "10004" [1]=> string(5) "10004" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "850" [7]=> string(3) "850" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-27 00:00:00" [9]=> string(19) "2020-02-27 00:00:00" } [4]=> array(20) { ["id"]=> string(2) "13" [0]=> string(2) "13" ["codigo"]=> string(5) "10005" [1]=> string(5) "10005" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "299" [7]=> string(3) "299" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2019-12-27 11:46:36" [9]=> string(19) "2019-12-27 11:46:36" } [5]=> array(20) { ["id"]=> string(2) "14" [0]=> string(2) "14" ["codigo"]=> string(5) "10006" [1]=> string(5) "10006" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" [4]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" ["servicios"]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "549" [7]=> string(3) "549" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:32" [9]=> string(19) "2020-03-01 17:08:32" } [6]=> array(20) { ["id"]=> string(2) "15" [0]=> string(2) "15" ["codigo"]=> string(5) "10007" [1]=> string(5) "10007" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" ["servicios"]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(3) "250" [7]=> string(3) "250" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:50:46" [9]=> string(19) "2020-03-01 16:50:46" } [7]=> array(20) { ["id"]=> string(2) "16" [0]=> string(2) "16" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:51:01" [9]=> string(19) "2020-02-01 16:51:01" } [8]=> array(20) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:52:25" [9]=> string(19) "2020-03-01 16:52:25" } [9]=> array(20) { ["id"]=> string(2) "18" [0]=> string(2) "18" ["codigo"]=> string(5) "10009" [1]=> string(5) "10009" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:53:12" [9]=> string(19) "2020-02-01 16:53:12" } [10]=> array(20) { ["id"]=> string(2) "19" [0]=> string(2) "19" ["codigo"]=> string(5) "10010" [1]=> string(5) "10010" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" [5]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "600" [7]=> string(3) "600" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:42" [9]=> string(19) "2020-01-01 16:53:42" } [11]=> array(20) { ["id"]=> string(2) "20" [0]=> string(2) "20" ["codigo"]=> string(5) "10011" [1]=> string(5) "10011" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" [4]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(6) "205.87" [6]=> string(6) "205.87" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:54" [9]=> string(19) "2020-01-01 16:53:54" } [12]=> array(20) { ["id"]=> string(2) "21" [0]=> string(2) "21" ["codigo"]=> string(5) "10012" [1]=> string(5) "10012" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" [4]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" ["servicios"]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(7) "45415.2" [6]=> string(7) "45415.2" ["precio_servicios"]=> string(5) "13323" [7]=> string(5) "13323" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 12:40:17" [9]=> string(19) "2020-03-02 12:40:17" } [13]=> array(20) { ["id"]=> string(2) "22" [0]=> string(2) "22" ["codigo"]=> string(5) "10013" [1]=> string(5) "10013" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:34:05" [9]=> string(19) "2020-03-02 20:34:05" } [14]=> array(20) { ["id"]=> string(2) "23" [0]=> string(2) "23" ["codigo"]=> string(5) "10014" [1]=> string(5) "10014" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:36:04" [9]=> string(19) "2020-03-02 20:36:04" } [15]=> array(20) { ["id"]=> string(2) "24" [0]=> string(2) "24" ["codigo"]=> string(5) "10015" [1]=> string(5) "10015" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" [4]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(5) "209.1" [6]=> string(5) "209.1" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:42:40" [9]=> string(19) "2020-03-09 12:42:40" } [16]=> array(20) { ["id"]=> string(2) "25" [0]=> string(2) "25" ["codigo"]=> string(5) "10016" [1]=> string(5) "10016" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" [5]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "546" [7]=> string(3) "546" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:44:45" [9]=> string(19) "2020-03-09 12:44:45" } [17]=> array(20) { ["id"]=> string(2) "26" [0]=> string(2) "26" ["codigo"]=> string(5) "10017" [1]=> string(5) "10017" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" [4]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" ["servicios"]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(5) "418.2" [6]=> string(5) "418.2" ["precio_servicios"]=> string(3) "444" [7]=> string(3) "444" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-11 12:08:26" [9]=> string(19) "2020-03-11 12:08:26" } }

se añadieron 18196 caracteres en el cuerpo
Origen Enlace
Agustin G.
  • 2.8k
  • 1
  • 17
  • 50

Agrego nuevamente las variables pero sin formatear, completas, para poder hacer pruebas

$usuarios

array(2) { [0]=> array(18) { ["id"]=> string(1) "1" [0]=> string(1) "1" ["nombre"]=> string(21) "Usuario Administrador" [1]=> string(21) "Usuario Administrador" ["usuario"]=> string(6) "admin1" [2]=> string(6) "admin1" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(8) "Especial" [4]=> string(8) "Especial" ["foto"]=> string(34) "vistas/img/usuarios/admin1/772.png" [5]=> string(34) "vistas/img/usuarios/admin1/772.png" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 09:16:39" [7]=> string(19) "2020-03-11 09:16:39" ["fecha"]=> string(19) "2020-03-11 09:16:39" [8]=> string(19) "2020-03-11 09:16:39" } [1]=> array(18) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["nombre"]=> string(12) "Oscar Guerra" [1]=> string(12) "Oscar Guerra" ["usuario"]=> string(4) "mani" [2]=> string(4) "mani" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(13) "Administrador" [4]=> string(13) "Administrador" ["foto"]=> string(32) "vistas/img/usuarios/mani/319.jpg" [5]=> string(32) "vistas/img/usuarios/mani/319.jpg" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 12:08:04" [7]=> string(19) "2020-03-11 12:08:04" ["fecha"]=> string(19) "2020-03-11 12:08:04" [8]=> string(19) "2020-03-11 12:08:04" } }

$ventas

array(18) { [0]=> array(20) { ["id"]=> string(1) "9" [0]=> string(1) "9" ["codigo"]=> string(5) "10001" [1]=> string(5) "10001" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" [4]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" ["servicios"]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(7) "10841.6" [6]=> string(7) "10841.6" ["precio_servicios"]=> string(3) "771" [7]=> string(3) "771" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:40:15" [9]=> string(19) "2020-01-01 16:40:15" } [1]=> array(20) { ["id"]=> string(2) "10" [0]=> string(2) "10" ["codigo"]=> string(5) "10002" [1]=> string(5) "10002" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" [4]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" ["servicios"]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "521" [7]=> string(3) "521" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:27" [9]=> string(19) "2020-03-01 17:08:27" } [2]=> array(20) { ["id"]=> string(2) "11" [0]=> string(2) "11" ["codigo"]=> string(5) "10003" [1]=> string(5) "10003" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" ["servicios"]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "644" [7]=> string(3) "644" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:22" [9]=> string(19) "2020-03-01 17:08:22" } [3]=> array(20) { ["id"]=> string(2) "12" [0]=> string(2) "12" ["codigo"]=> string(5) "10004" [1]=> string(5) "10004" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "850" [7]=> string(3) "850" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-27 00:00:00" [9]=> string(19) "2020-02-27 00:00:00" } [4]=> array(20) { ["id"]=> string(2) "13" [0]=> string(2) "13" ["codigo"]=> string(5) "10005" [1]=> string(5) "10005" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "299" [7]=> string(3) "299" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2019-12-27 11:46:36" [9]=> string(19) "2019-12-27 11:46:36" } [5]=> array(20) { ["id"]=> string(2) "14" [0]=> string(2) "14" ["codigo"]=> string(5) "10006" [1]=> string(5) "10006" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" [4]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" ["servicios"]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "549" [7]=> string(3) "549" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:32" [9]=> string(19) "2020-03-01 17:08:32" } [6]=> array(20) { ["id"]=> string(2) "15" [0]=> string(2) "15" ["codigo"]=> string(5) "10007" [1]=> string(5) "10007" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" ["servicios"]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(3) "250" [7]=> string(3) "250" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:50:46" [9]=> string(19) "2020-03-01 16:50:46" } [7]=> array(20) { ["id"]=> string(2) "16" [0]=> string(2) "16" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:51:01" [9]=> string(19) "2020-02-01 16:51:01" } [8]=> array(20) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:52:25" [9]=> string(19) "2020-03-01 16:52:25" } [9]=> array(20) { ["id"]=> string(2) "18" [0]=> string(2) "18" ["codigo"]=> string(5) "10009" [1]=> string(5) "10009" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:53:12" [9]=> string(19) "2020-02-01 16:53:12" } [10]=> array(20) { ["id"]=> string(2) "19" [0]=> string(2) "19" ["codigo"]=> string(5) "10010" [1]=> string(5) "10010" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" [5]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "600" [7]=> string(3) "600" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:42" [9]=> string(19) "2020-01-01 16:53:42" } [11]=> array(20) { ["id"]=> string(2) "20" [0]=> string(2) "20" ["codigo"]=> string(5) "10011" [1]=> string(5) "10011" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" [4]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(6) "205.87" [6]=> string(6) "205.87" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:54" [9]=> string(19) "2020-01-01 16:53:54" } [12]=> array(20) { ["id"]=> string(2) "21" [0]=> string(2) "21" ["codigo"]=> string(5) "10012" [1]=> string(5) "10012" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" [4]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" ["servicios"]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(7) "45415.2" [6]=> string(7) "45415.2" ["precio_servicios"]=> string(5) "13323" [7]=> string(5) "13323" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 12:40:17" [9]=> string(19) "2020-03-02 12:40:17" } [13]=> array(20) { ["id"]=> string(2) "22" [0]=> string(2) "22" ["codigo"]=> string(5) "10013" [1]=> string(5) "10013" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:34:05" [9]=> string(19) "2020-03-02 20:34:05" } [14]=> array(20) { ["id"]=> string(2) "23" [0]=> string(2) "23" ["codigo"]=> string(5) "10014" [1]=> string(5) "10014" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:36:04" [9]=> string(19) "2020-03-02 20:36:04" } [15]=> array(20) { ["id"]=> string(2) "24" [0]=> string(2) "24" ["codigo"]=> string(5) "10015" [1]=> string(5) "10015" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" [4]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(5) "209.1" [6]=> string(5) "209.1" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:42:40" [9]=> string(19) "2020-03-09 12:42:40" } [16]=> array(20) { ["id"]=> string(2) "25" [0]=> string(2) "25" ["codigo"]=> string(5) "10016" [1]=> string(5) "10016" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" [5]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "546" [7]=> string(3) "546" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:44:45" [9]=> string(19) "2020-03-09 12:44:45" } [17]=> array(20) { ["id"]=> string(2) "26" [0]=> string(2) "26" ["codigo"]=> string(5) "10017" [1]=> string(5) "10017" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" [4]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" ["servicios"]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(5) "418.2" [6]=> string(5) "418.2" ["precio_servicios"]=> string(3) "444" [7]=> string(3) "444" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-11 12:08:26" [9]=> string(19) "2020-03-11 12:08:26" } }

Agrego nuevamente las variables pero sin formatear, completas, para poder hacer pruebas

$usuarios

array(2) { [0]=> array(18) { ["id"]=> string(1) "1" [0]=> string(1) "1" ["nombre"]=> string(21) "Usuario Administrador" [1]=> string(21) "Usuario Administrador" ["usuario"]=> string(6) "admin1" [2]=> string(6) "admin1" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(8) "Especial" [4]=> string(8) "Especial" ["foto"]=> string(34) "vistas/img/usuarios/admin1/772.png" [5]=> string(34) "vistas/img/usuarios/admin1/772.png" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 09:16:39" [7]=> string(19) "2020-03-11 09:16:39" ["fecha"]=> string(19) "2020-03-11 09:16:39" [8]=> string(19) "2020-03-11 09:16:39" } [1]=> array(18) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["nombre"]=> string(12) "Oscar Guerra" [1]=> string(12) "Oscar Guerra" ["usuario"]=> string(4) "mani" [2]=> string(4) "mani" ["password"]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27382323uRzpL251kQfSfYjbed2LgWsfYY6UqC6a" ["perfil"]=> string(13) "Administrador" [4]=> string(13) "Administrador" ["foto"]=> string(32) "vistas/img/usuarios/mani/319.jpg" [5]=> string(32) "vistas/img/usuarios/mani/319.jpg" ["estado"]=> string(1) "1" [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 12:08:04" [7]=> string(19) "2020-03-11 12:08:04" ["fecha"]=> string(19) "2020-03-11 12:08:04" [8]=> string(19) "2020-03-11 12:08:04" } }

$ventas

array(18) { [0]=> array(20) { ["id"]=> string(1) "9" [0]=> string(1) "9" ["codigo"]=> string(5) "10001" [1]=> string(5) "10001" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" [4]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" ["servicios"]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(7) "10841.6" [6]=> string(7) "10841.6" ["precio_servicios"]=> string(3) "771" [7]=> string(3) "771" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:40:15" [9]=> string(19) "2020-01-01 16:40:15" } [1]=> array(20) { ["id"]=> string(2) "10" [0]=> string(2) "10" ["codigo"]=> string(5) "10002" [1]=> string(5) "10002" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" [4]=> string(98) "[{"id":"63","descripcion":"Cera de Coco","cantidad":"1","stock":"8","precio":"340","total":"340"}]" ["servicios"]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(107) "[{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "521" [7]=> string(3) "521" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:27" [9]=> string(19) "2020-03-01 17:08:27" } [2]=> array(20) { ["id"]=> string(2) "11" [0]=> string(2) "11" ["codigo"]=> string(5) "10003" [1]=> string(5) "10003" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"6","precio":"300","total":"300"}]" ["servicios"]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(161) "[{"descripcion":"Servicio 1","precio":"123","id":"39"},{"descripcion":"Corte y barba","precio":"222","id":"32"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "644" [7]=> string(3) "644" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:22" [9]=> string(19) "2020-03-01 17:08:22" } [3]=> array(20) { ["id"]=> string(2) "12" [0]=> string(2) "12" ["codigo"]=> string(5) "10004" [1]=> string(5) "10004" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(103) "[{"descripcion":"Corte","precio":"600","id":"26"},{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "850" [7]=> string(3) "850" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-27 00:00:00" [9]=> string(19) "2020-02-27 00:00:00" } [4]=> array(20) { ["id"]=> string(2) "13" [0]=> string(2) "13" ["codigo"]=> string(5) "10005" [1]=> string(5) "10005" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(50) "[{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "299" [7]=> string(3) "299" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2019-12-27 11:46:36" [9]=> string(19) "2019-12-27 11:46:36" } [5]=> array(20) { ["id"]=> string(2) "14" [0]=> string(2) "14" ["codigo"]=> string(5) "10006" [1]=> string(5) "10006" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" [4]=> string(112) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"3","stock":"3","precio":"300","total":"900.00"}]" ["servicios"]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" [5]=> string(103) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "549" [7]=> string(3) "549" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 17:08:32" [9]=> string(19) "2020-03-01 17:08:32" } [6]=> array(20) { ["id"]=> string(2) "15" [0]=> string(2) "15" ["codigo"]=> string(5) "10007" [1]=> string(5) "10007" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"2","precio":"300","total":"300"}]" ["servicios"]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" [5]=> string(54) "[{"descripcion":"Perfilado","precio":"250","id":"27"}]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(3) "250" [7]=> string(3) "250" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:50:46" [9]=> string(19) "2020-03-01 16:50:46" } [7]=> array(20) { ["id"]=> string(2) "16" [0]=> string(2) "16" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:51:01" [9]=> string(19) "2020-02-01 16:51:01" } [8]=> array(20) { ["id"]=> string(2) "17" [0]=> string(2) "17" ["codigo"]=> string(5) "10008" [1]=> string(5) "10008" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" [5]=> string(111) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "472" [7]=> string(3) "472" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-01 16:52:25" [9]=> string(19) "2020-03-01 16:52:25" } [9]=> array(20) { ["id"]=> string(2) "18" [0]=> string(2) "18" ["codigo"]=> string(5) "10009" [1]=> string(5) "10009" ["id_cliente"]=> string(1) "3" [2]=> string(1) "3" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" [4]=> string(109) "[{"id":"62","descripcion":"Cera para barba Menta 2","cantidad":"1","stock":"1","precio":"300","total":"300"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(3) "300" [6]=> string(3) "300" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-02-01 16:53:12" [9]=> string(19) "2020-02-01 16:53:12" } [10]=> array(20) { ["id"]=> string(2) "19" [0]=> string(2) "19" ["codigo"]=> string(5) "10010" [1]=> string(5) "10010" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" [5]=> string(50) "[{"descripcion":"Corte","precio":"600","id":"26"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "600" [7]=> string(3) "600" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:42" [9]=> string(19) "2020-01-01 16:53:42" } [11]=> array(20) { ["id"]=> string(2) "20" [0]=> string(2) "20" ["codigo"]=> string(5) "10011" [1]=> string(5) "10011" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" [4]=> string(111) "[{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"1","stock":"73","precio":"205.87","total":"205.87"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(6) "205.87" [6]=> string(6) "205.87" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:53:54" [9]=> string(19) "2020-01-01 16:53:54" } [12]=> array(20) { ["id"]=> string(2) "21" [0]=> string(2) "21" ["codigo"]=> string(5) "10012" [1]=> string(5) "10012" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" [4]=> string(330) "[{"id":"74","descripcion":"Cera para barba Menta","cantidad":"3","stock":"5","precio":"545.7","total":"1637.10"},{"id":"61","descripcion":"Cera EDItada","cantidad":"4","stock":"64","precio":"10841.6","total":"43366.40"},{"id":"64","descripcion":"Aceite de bálsamo","cantidad":"2","stock":"71","precio":"205.87","total":"411.74"}]" ["servicios"]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(262) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"},{"descripcion":"Servicio 3","precio":"12333","id":"41"},{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(7) "45415.2" [6]=> string(7) "45415.2" ["precio_servicios"]=> string(5) "13323" [7]=> string(5) "13323" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 12:40:17" [9]=> string(19) "2020-03-02 12:40:17" } [13]=> array(20) { ["id"]=> string(2) "22" [0]=> string(2) "22" ["codigo"]=> string(5) "10013" [1]=> string(5) "10013" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(1) "1" [3]=> string(1) "1" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:34:05" [9]=> string(19) "2020-03-02 20:34:05" } [14]=> array(20) { ["id"]=> string(2) "23" [0]=> string(2) "23" ["codigo"]=> string(5) "10014" [1]=> string(5) "10014" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" [5]=> string(51) "[{"descripcion":"PRUEBA","precio":"123","id":"44"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "123" [7]=> string(3) "123" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-02 20:36:04" [9]=> string(19) "2020-03-02 20:36:04" } [15]=> array(20) { ["id"]=> string(2) "24" [0]=> string(2) "24" ["codigo"]=> string(5) "10015" [1]=> string(5) "10015" ["id_cliente"]=> string(1) "1" [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" [4]=> string(96) "[{"id":"78","descripcion":"Cera","cantidad":"1","stock":"111","precio":"209.1","total":"209.1"}]" ["servicios"]=> string(2) "[]" [5]=> string(2) "[]" ["precio_productos"]=> string(5) "209.1" [6]=> string(5) "209.1" ["precio_servicios"]=> string(1) "0" [7]=> string(1) "0" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:42:40" [9]=> string(19) "2020-03-09 12:42:40" } [16]=> array(20) { ["id"]=> string(2) "25" [0]=> string(2) "25" ["codigo"]=> string(5) "10016" [1]=> string(5) "10016" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(0) "" [4]=> string(0) "" ["servicios"]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" [5]=> string(152) "[{"descripcion":"PRUEBA","precio":"123","id":"44"},{"descripcion":"PRUEBA","precio":"300","id":"43"},{"descripcion":"Corte21","precio":"123","id":"42"}]" ["precio_productos"]=> string(1) "0" [6]=> string(1) "0" ["precio_servicios"]=> string(3) "546" [7]=> string(3) "546" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-09 12:44:45" [9]=> string(19) "2020-03-09 12:44:45" } [17]=> array(20) { ["id"]=> string(2) "26" [0]=> string(2) "26" ["codigo"]=> string(5) "10017" [1]=> string(5) "10017" ["id_cliente"]=> string(1) "2" [2]=> string(1) "2" ["id_vendedor"]=> string(2) "17" [3]=> string(2) "17" ["productos"]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" [4]=> string(116) "[{"id":"79","descripcion":"Cera para barba Menta 3","cantidad":"2","stock":"121","precio":"209.1","total":"418.20"}]" ["servicios"]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" [5]=> string(55) "[{"descripcion":"Servicio 2","precio":"444","id":"40"}]" ["precio_productos"]=> string(5) "418.2" [6]=> string(5) "418.2" ["precio_servicios"]=> string(3) "444" [7]=> string(3) "444" ["metodo_pago"]=> string(8) "Efectivo" [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-03-11 12:08:26" [9]=> string(19) "2020-03-11 12:08:26" } }

se añadieron 2358 caracteres en el cuerpo
Origen Enlace
Agustin G.
  • 2.8k
  • 1
  • 17
  • 50

Edit: Pongo la salida de algunas variables que se ven en el codigo

$ventas:

array(18) { [0]=> array(20) 
            { ["id"]=> string(1) "9" 
            [0]=> string(1) "9" ["codigo"]=> string(5) "10001" 
            [1]=> string(5) "10001" ["id_cliente"]=> string(1) "1" 
            [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" 
            [3]=> string(2) "17" ["productos"]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" 
            [4]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" ["servicios"]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" 
            [5]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(7) "10841.6" 
            [6]=> string(7) "10841.6" ["precio_servicios"]=> string(3) "771" 
            [7]=> string(3) "771" ["metodo_pago"]=> string(8) "Efectivo" 
            [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:40:15" 
            [9]=> string(19) "2020-01-01 16:40:15" 
         }

$usuarios

array(2) { [0]=> array(18)
         {["id"]=> string(1) "1" 
          [0]=> string(1) "1" ["nombre"]=> string(21) "Usuario Administrador" 
          [1]=> string(21) "Usuario Administrador" ["usuario"]=> string(6) "admin1" 
          [2]=> string(6) "admin1" ["password"]=> string(60) "$2a$07$hsdfhdhf..." 
          [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27..." ["perfil"]=> string(8) "Especial" 
          [4]=> string(8) "Especial" ["foto"]=> string(34) "vistas/img/usuarios/admin1/772.png" 
          [5]=> string(34) "vistas/img/usuarios/admin1/772.png" ["estado"]=> string(1) "1"
          [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 09:16:39" 
          [7]=> string(19) "2020-03-11 09:16:39" ["fecha"]=> string(19) "2020-03-11 09:16:39" 
          [8]=> string(19) "2020-03-11 09:16:39" 
        }

Estoy intentando recuperar en un arrays todas las ventas que realizo el usuario. Al array quiero agregarle los pares nombreUsuario => precioProductos

Estoy intentando recuperar en un arrays todas las ventas que realizo el usuario. Al array quiero agregarle los pares nombreUsuario => precioProductos

Edit: Pongo la salida de algunas variables que se ven en el codigo

$ventas:

array(18) { [0]=> array(20) 
            { ["id"]=> string(1) "9" 
            [0]=> string(1) "9" ["codigo"]=> string(5) "10001" 
            [1]=> string(5) "10001" ["id_cliente"]=> string(1) "1" 
            [2]=> string(1) "1" ["id_vendedor"]=> string(2) "17" 
            [3]=> string(2) "17" ["productos"]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" 
            [4]=> string(107) "[{"id":"61","descripcion":"Cera EDItada","cantidad":"1","stock":"68","precio":"10841.6","total":"10841.6"}]" ["servicios"]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" 
            [5]=> string(160) "[{"descripcion":"Perfilado","precio":"250","id":"27"},{"descripcion":"Otros","precio":"299","id":"31"},{"descripcion":"Corte y barba","precio":"222","id":"32"}]" ["precio_productos"]=> string(7) "10841.6" 
            [6]=> string(7) "10841.6" ["precio_servicios"]=> string(3) "771" 
            [7]=> string(3) "771" ["metodo_pago"]=> string(8) "Efectivo" 
            [8]=> string(8) "Efectivo" ["fecha"]=> string(19) "2020-01-01 16:40:15" 
            [9]=> string(19) "2020-01-01 16:40:15" 
         }

$usuarios

array(2) { [0]=> array(18)
         {["id"]=> string(1) "1" 
          [0]=> string(1) "1" ["nombre"]=> string(21) "Usuario Administrador" 
          [1]=> string(21) "Usuario Administrador" ["usuario"]=> string(6) "admin1" 
          [2]=> string(6) "admin1" ["password"]=> string(60) "$2a$07$hsdfhdhf..." 
          [3]=> string(60) "$2a$07$hsdfhdhfsdhfh27..." ["perfil"]=> string(8) "Especial" 
          [4]=> string(8) "Especial" ["foto"]=> string(34) "vistas/img/usuarios/admin1/772.png" 
          [5]=> string(34) "vistas/img/usuarios/admin1/772.png" ["estado"]=> string(1) "1"
          [6]=> string(1) "1" ["ultimo_login"]=> string(19) "2020-03-11 09:16:39" 
          [7]=> string(19) "2020-03-11 09:16:39" ["fecha"]=> string(19) "2020-03-11 09:16:39" 
          [8]=> string(19) "2020-03-11 09:16:39" 
        }

Estoy intentando recuperar en un arrays todas las ventas que realizo el usuario. Al array quiero agregarle los pares nombreUsuario => precioProductos

elimine codigo
Origen Enlace
Agustin G.
  • 2.8k
  • 1
  • 17
  • 50
Loading
Origen Enlace
Agustin G.
  • 2.8k
  • 1
  • 17
  • 50
Loading