How to display array value to my template?

I am using plugin for wordpress,

import-users-from-csv plugin upload csv error log in text file.

Read More

i need help error log display same screen, array value display print_r();

but display in my screen error on my foreach loop.help with correct my foreach loop.

 Array
(
    [0] => WP_Error Object
        (
            [errors] => Array
                (
                    [existing_user_login] => Array
                        (
                            [0] => Sorry, that username already exists!
                        )

                )

            [error_data] => Array
                (
                )

        )

    [1] => WP_Error Object
        (
            [errors] => Array
                (
                    [existing_user_login] => Array
                        (
                            [0] => Sorry, that username already exists!
                        )

                )

            [error_data] => Array
                (
                )

        )

)

I am using display this array value in this foreach but value not display, Help with us

foreach($nerrors as $key=>$err)
        {
            echo $err['errors']['existing_user_login'][$key];


        }

Related posts

Leave a Reply

1 comment