• ashop59

    (@ashop59)


    Hello, I hope not to bother I have a basic question but that so far I have not understood.

    I have several values inside a meta key and when retrieving them I get an array clearly. The problem is that I don’t know how to get the values only. It would be like this:

    get_user_meta ($ vendor_id, ‘subscribers2’, false);

    within the subscribers2 meta there are, for example, 3 email addresses 1@gmail.com, 2@gmail.com and 3@gmail.com.

    well how do i get that?

    at the moment I can’t, I just get a simple Array or this:

    $ emails_todos_subscrip = get_user_meta ($ vendor_id, ‘subscribers2’, false);
    echo print_r ($ emails_all_subscription);

    ArrayArray ([0] => Array ([0] => Array ([0] => 111@gmail.com [1] => 111@gmail.com [2] => 111@gmail.com [3] = > 111@gmail.com [4] => 111@gmail.com [5] => 111@gmail.com [6] => 111@gmail.com [7] => 111@gmail.com [8] = > tiendanannn@gmail.com) [1] => Array ([0] ……

    and so much more of the same.

    I appreciate your help.

Viendo 1 respuesta (de un total de 1)
Viendo 1 respuesta (de un total de 1)
  • El debate ‘get values ​​from an array’ está cerrado a nuevas respuestas.