Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

PHP: Array quitando los nulos y los vacíos - https://es.stackoverflow....

Language: Layout:
+ ] Show input
Absolute running time: 0.19 sec, cpu time: 0.11 sec, memory peak: 8 Mb, absolute service time: 0,2 sec 
edit mode |  history
Array final sin reindexar
Array
(
    [0] => Array
        (
            [cedula] => 123455
            [correo] => micorreo@dominio.com
        )

    [5] => Array
        (
            [cedula] => 123460
            [correo] => otro@correo.com
        )

)


Array final reindexado
Array
(
    [0] => Array
        (
            [cedula] => 123455
            [correo] => micorreo@dominio.com
        )

    [1] => Array
        (
            [cedula] => 123460
            [correo] => otro@correo.com
        )

)